lib/chronicle/etl/exceptions.rb in chronicle-etl-0.4.1 vs lib/chronicle/etl/exceptions.rb in chronicle-etl-0.4.2
- old
+ new
@@ -1,11 +1,33 @@
module Chronicle
module ETL
class Error < StandardError; end
- class ConfigurationError < Error; end
+ class ConfigError < Error; end
class RunnerTypeError < Error; end
+
+ class JobDefinitionError < Error
+ attr_reader :job_definition
+
+ def initialize(job_definition)
+ @job_definition = job_definition
+ super
+ end
+ end
+
+ class PluginError < Error
+ attr_reader :name
+
+ def initialize(name)
+ @name = name
+ end
+ end
+
+ class PluginNotAvailableError < PluginError; end
+ class PluginLoadError < PluginError; end
+
+ class ConnectorConfigurationError < Error; end
class ConnectorNotAvailableError < Error
def initialize(message, provider: nil, name: nil)
super(message)
@provider = provider