Sha256: 12e3cab95b5b4dd06fa66682f039d3d2f27b847f49a3f28110ce58a27d66bc89

Contents?: true

Size: 768 Bytes

Versions: 2

Compression:

Stored size: 768 Bytes

Contents

module Chronicle
  module ETL
    class Error < StandardError; end;

    class RunnerTypeError < Error; end

    class ConnectorNotAvailableError < Error
      def initialize(message, provider: nil, name: nil)
        super(message)
        @provider = provider
        @name = name
      end
      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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chronicle-etl-0.3.1 lib/chronicle/etl/exceptions.rb
chronicle-etl-0.3.0 lib/chronicle/etl/exceptions.rb