Exception: Stomp::Error::BrokerException
- Inherits:
-
StompException
- Object
- RuntimeError
- StompException
- Stomp::Error::BrokerException
- Defined in:
- lib/stomp/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#broker_backtrace ⇒ Object
readonly
Returns the value of attribute broker_backtrace.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#receipt_id ⇒ Object
readonly
Returns the value of attribute receipt_id.
Instance Method Summary collapse
-
#initialize(message) ⇒ BrokerException
constructor
A new instance of BrokerException.
Constructor Details
#initialize(message) ⇒ BrokerException
Returns a new instance of BrokerException.
282 283 284 285 286 287 |
# File 'lib/stomp/errors.rb', line 282 def initialize() @message = .headers.delete('message') @receipt_id = .headers.delete('receipt-id') || 'no receipt id' @headers = .headers @broker_backtrace = .body end |
Instance Attribute Details
#broker_backtrace ⇒ Object (readonly)
Returns the value of attribute broker_backtrace.
280 281 282 |
# File 'lib/stomp/errors.rb', line 280 def broker_backtrace @broker_backtrace end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
280 281 282 |
# File 'lib/stomp/errors.rb', line 280 def headers @headers end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
280 281 282 |
# File 'lib/stomp/errors.rb', line 280 def @message end |
#receipt_id ⇒ Object (readonly)
Returns the value of attribute receipt_id.
280 281 282 |
# File 'lib/stomp/errors.rb', line 280 def receipt_id @receipt_id end |