Class: Embulk::DataError

Inherits:
Java::SPI::DataException
  • Object
show all
Defined in:
embulk-core/src/main/ruby/embulk/error.rb

Overview

DataError is not a ::StandardError but is a java.lang.RuntimeException. “rescue => e” can rescues DataError.

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ DataError

Returns a new instance of DataError



18
19
20
21
22
23
24
# File 'embulk-core/src/main/ruby/embulk/error.rb', line 18

def initialize(message=nil)
  if message
    super(message.to_s)
  else
    super()
  end
end