Exception: JSparrow::Connection::InvalidClientStateError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(state, operation) ⇒ InvalidClientStateError

Returns a new instance of InvalidClientStateError.



216
217
218
219
220
221
# File 'lib/connection.rb', line 216

def initialize(state, operation)
  super("Could not did #{operation} because client is #{state}.")
  
  @state     = state
  @operation = operation
end

Instance Attribute Details

#operationObject (readonly)

Returns the value of attribute operation.



214
215
216
# File 'lib/connection.rb', line 214

def operation
  @operation
end

#stateObject (readonly)

Returns the value of attribute state.



214
215
216
# File 'lib/connection.rb', line 214

def state
  @state
end