Exception: Fhlow::FhlowException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/module_fhlow/fhlowexception.rb

Overview

FhlowException is derived from StandardError in order to extend it with an additional attribute caller.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_caller, *_args) ⇒ FhlowException

Sets the attribute caller and calls the constructor of StandardError.

_caller

Informations about the object or the program state that throws this exception.

*_args

An Array of arguments for the constructor of StandardError



38
39
40
41
# File 'lib/module_fhlow/fhlowexception.rb', line 38

def initialize (_caller, *_args)
    super(_args)
    @caller = _caller
end

Instance Attribute Details

#callerObject (readonly)

Holds information about the object or the program state that throws this exception.



33
34
35
# File 'lib/module_fhlow/fhlowexception.rb', line 33

def caller
  @caller
end