Exception: Factor::Connector::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Factor::Connector::Error
- Defined in:
- lib/errors.rb
Instance Attribute Summary collapse
-
#exception ⇒ Object
Returns the value of attribute exception.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(params = {}) ⇒ Error
Returns a new instance of Error.
8 9 10 11 |
# File 'lib/errors.rb', line 8 def initialize(params = {}) @exception = params[:exception] super(params[:message] || '') end |
Instance Attribute Details
#exception ⇒ Object
Returns the value of attribute exception.
6 7 8 |
# File 'lib/errors.rb', line 6 def exception @exception end |
#state ⇒ Object
Returns the value of attribute state.
6 7 8 |
# File 'lib/errors.rb', line 6 def state @state end |