Exception: Stomp::Error::BrokerException

Inherits:
StompException show all
Defined in:
lib/stomp/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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)
  @message          = message.headers.delete('message')
  @receipt_id       = message.headers.delete('receipt-id') || 'no receipt id'
  @headers          = message.headers
  @broker_backtrace = message.body
end

Instance Attribute Details

#broker_backtraceObject (readonly)

Returns the value of attribute broker_backtrace



280
281
282
# File 'lib/stomp/errors.rb', line 280

def broker_backtrace
  @broker_backtrace
end

#headersObject (readonly)

Returns the value of attribute headers



280
281
282
# File 'lib/stomp/errors.rb', line 280

def headers
  @headers
end

#messageObject (readonly)

Returns the value of attribute message



280
281
282
# File 'lib/stomp/errors.rb', line 280

def message
  @message
end

#receipt_idObject (readonly)

Returns the value of attribute receipt_id



280
281
282
# File 'lib/stomp/errors.rb', line 280

def receipt_id
  @receipt_id
end