class StompOut::ProtocolError

Exception for STOMP protocol violations

Attributes

frame[R]
Frame, NilClass

Frame for which error occurred

headers[R]
Hash

Headers to be included in an ERROR response

receipt[R]
String, NilClass

Contents of “receipt” header in frame causing error

Public Class Methods

new(message, frame = nil, headers = nil) click to toggle source

Create exception

@param [String] message describing error @param [Frame, NilClass] frame that caused error @param [Hash, NilClass] headers to be included in an ERROR response

Calls superclass method
# File lib/stomp_out/errors.rb, line 41
def initialize(message, frame = nil, headers = nil)
  @frame = frame
  @headers = headers || {}
  super(message)
end