lib/chronicle/etl/exceptions.rb in chronicle-etl-0.2.4 vs lib/chronicle/etl/exceptions.rb in chronicle-etl-0.3.0
- old
+ new
@@ -1,10 +1,10 @@
module Chronicle
module ETL
class Error < StandardError; end;
- class InvalidTransformedRecordError < Error; end
+ class RunnerTypeError < Error; end
class ConnectorNotAvailableError < Error
def initialize(message, provider: nil, name: nil)
super(message)
@provider = provider
@@ -13,7 +13,18 @@
attr_reader :name, :provider
end
class ProviderNotAvailableError < ConnectorNotAvailableError; end
class ProviderConnectorNotAvailableError < ConnectorNotAvailableError; end
+
+ class TransformationError < Error
+ attr_reader :transformation
+
+ def initialize(message=nil, transformation:)
+ super(message)
+ @transformation = transformation
+ end
+ end
+
+ class UntransformableRecordError < TransformationError; end
end
end