Exception: Functio::FunctioError
- Inherits:
-
StandardError
- Object
- StandardError
- Functio::FunctioError
- Defined in:
- lib/functio/errors.rb
Overview
Base exception class for Functio errors.
Direct Known Subclasses
DivisionByZeroError, InvalidExpressionError, InvalidFunctionError
Instance Attribute Summary collapse
-
#original ⇒ Object
readonly
Original exception.
Instance Method Summary collapse
-
#initialize(message = nil, original = $ERROR_INFO) ⇒ FunctioError
constructor
Constructs a new FunctioError instance passing in a
messageand optionally theoriginalexception which caused this.
Constructor Details
#initialize(message = nil, original = $ERROR_INFO) ⇒ FunctioError
Constructs a new FunctioError instance passing in a message and optionally the original exception which caused this.
28 29 30 31 |
# File 'lib/functio/errors.rb', line 28 def initialize( = nil, original = $ERROR_INFO) super() @original = original end |
Instance Attribute Details
#original ⇒ Object (readonly)
Original exception.
24 25 26 |
# File 'lib/functio/errors.rb', line 24 def original @original end |