lib/filegen/exceptions.rb in filegen-0.2.1 vs lib/filegen/exceptions.rb in filegen-0.2.2
- old
+ new
@@ -1,8 +1,17 @@
# encoding: utf-8
module Filegen
# Exceptions
module Exceptions
# raised if order arguments are invalid
- class InvalidDataSources < Exception; end
+ class DataSourcesAreInvalid < RuntimeError; end
+
+ # raised if one forgot to tell the script the template name
+ class TemplateNameIsMissing < RuntimeError; end
+
+ # raised if template given on commandline does not exist
+ class TemplateDoesNotExist < RuntimeError; end
+
+ # raised if one uses an invalid template name (missing erb)
+ class TemplateNameIsInvalid < RuntimeError; end
end
end