Exception: JSparrow::Connection::InvalidClientStateError
- Inherits:
-
StandardError
- Object
- StandardError
- JSparrow::Connection::InvalidClientStateError
- Defined in:
- lib/connection.rb
Instance Attribute Summary collapse
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(state, operation) ⇒ InvalidClientStateError
constructor
A new instance of InvalidClientStateError.
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
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
214 215 216 |
# File 'lib/connection.rb', line 214 def operation @operation end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
214 215 216 |
# File 'lib/connection.rb', line 214 def state @state end |