Sha256: c661bc3c4b1db8e449b1e4b152da7d5e0219d89fe2a62257797f65c1c1dc9e25

Contents?: true

Size: 893 Bytes

Versions: 1

Compression:

Stored size: 893 Bytes

Contents

module Chronicle
  module ETL
    class Error < StandardError; end

    class ConfigurationError < Error; 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 ExtractionError < Error; end

    class SerializationError < Error; 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

1 entries across 1 versions & 1 rubygems

Version Path
chronicle-etl-0.4.1 lib/chronicle/etl/exceptions.rb