Exception: Fhlow::FhlowException
- Inherits:
-
StandardError
- Object
- StandardError
- Fhlow::FhlowException
- Defined in:
- lib/module_fhlow/fhlowexception.rb
Overview
FhlowException is derived from StandardError in order to extend it with an additional attribute caller.
Direct Known Subclasses
FhlowFileNotFoundException, FhlowObjectNotFoundException, FhlowPluginException
Instance Attribute Summary collapse
-
#caller ⇒ Object
readonly
Holds information about the object or the program state that throws this exception.
Instance Method Summary collapse
-
#initialize(_caller, *_args) ⇒ FhlowException
constructor
Sets the attribute caller and calls the constructor of StandardError.
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
#caller ⇒ Object (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 |