Sha256: f3dce63fc876c8bb60849ecb1d516edb57485f86e6982b1f6541830a9b27c7bf

Contents?: true

Size: 611 Bytes

Versions: 2

Compression:

Stored size: 611 Bytes

Contents

module Embulk
  # ConfigError is not a ::StandardError but is a java.lang.RuntimeException.
  # "rescue => e" can rescues ConfigError.
  class ConfigError < Java::Config::ConfigException
    def initialize(message=nil)
      if message
        super(message.to_s)
      else
        super()
      end
    end
  end

  # DataError is not a ::StandardError but is a java.lang.RuntimeException.
  # "rescue => e" can rescues DataError.
  class DataError < Java::SPI::DataException
    def initialize(message=nil)
      if message
        super(message.to_s)
      else
        super()
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
embulk-0.7.2 lib/embulk/error.rb
embulk-0.7.2-java lib/embulk/error.rb