Exception: Functio::FunctioError

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

Overview

Base exception class for Functio errors.

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message = nil, original = $ERROR_INFO)
  super(message)
  @original = original
end

Instance Attribute Details

#originalObject (readonly)

Original exception.



24
25
26
# File 'lib/functio/errors.rb', line 24

def original
  @original
end