Exception: Factor::Connector::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#exceptionObject

Returns the value of attribute exception.



6
7
8
# File 'lib/errors.rb', line 6

def exception
  @exception
end

#stateObject

Returns the value of attribute state.



6
7
8
# File 'lib/errors.rb', line 6

def state
  @state
end