Exception: StompOut::ProtocolError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- StompOut::ProtocolError
- Defined in:
- lib/stomp_out/errors.rb
Overview
Exception for STOMP protocol violations
Instance Attribute Summary collapse
-
#frame ⇒ Object
readonly
- Frame, NilClass
-
Frame for which error occurred.
-
#headers ⇒ Object
readonly
- Hash
-
Headers to be included in an ERROR response.
-
#receipt ⇒ Object
readonly
- String, NilClass
-
Contents of “receipt” header in frame causing error.
Instance Method Summary collapse
-
#initialize(message, frame = nil, headers = nil) ⇒ ProtocolError
constructor
Create exception.
Constructor Details
#initialize(message, frame = nil, headers = nil) ⇒ ProtocolError
Create exception
41 42 43 44 45 |
# File 'lib/stomp_out/errors.rb', line 41 def initialize(, frame = nil, headers = nil) @frame = frame @headers = headers || {} super() end |
Instance Attribute Details
#frame ⇒ Object (readonly)
- Frame, NilClass
-
Frame for which error occurred
34 35 36 |
# File 'lib/stomp_out/errors.rb', line 34 def frame @frame end |
#headers ⇒ Object (readonly)
- Hash
-
Headers to be included in an ERROR response
28 29 30 |
# File 'lib/stomp_out/errors.rb', line 28 def headers @headers end |
#receipt ⇒ Object (readonly)
- String, NilClass
-
Contents of “receipt” header in frame causing error
31 32 33 |
# File 'lib/stomp_out/errors.rb', line 31 def receipt @receipt end |