Exception: Ticketing::ProtocolError
- Defined in:
- lib/ticketing/errors.rb
Overview
The server sent a reply that does not fit the request that was made.
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(reason) ⇒ ProtocolError
constructor
A new instance of ProtocolError.
Constructor Details
#initialize(reason) ⇒ ProtocolError
Returns a new instance of ProtocolError.
35 36 37 38 |
# File 'lib/ticketing/errors.rb', line 35 def initialize(reason) @reason = reason super("protocol error: #{reason}") end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
33 34 35 |
# File 'lib/ticketing/errors.rb', line 33 def reason @reason end |