Exception: Hermann::Errors::GeneralError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hermann/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = '', options = {}) ⇒ GeneralError

Initialize a connectivity error

Parameters:

  • message (String) (defaults to: '')

    Exception’s message

  • Hash[ (Hash[ options)

    options

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :java_exception (Java::Lang::RuntimeException)

    An underlying Java exception



13
14
15
16
# File 'lib/hermann/errors.rb', line 13

def initialize(message='', options={})
  super(message)
  @java_exception = options[:java_exception]
end

Instance Attribute Details

#java_exceptionObject (readonly)

Returns the value of attribute java_exception.



5
6
7
# File 'lib/hermann/errors.rb', line 5

def java_exception
  @java_exception
end