Exception: Ticketing::ProtocolError

Inherits:
Error
  • Object
show all
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

Instance Method Summary collapse

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

#reasonObject (readonly)

Returns the value of attribute reason.



33
34
35
# File 'lib/ticketing/errors.rb', line 33

def reason
  @reason
end