Exception: StompOut::ApplicationError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/stomp_out/errors.rb

Overview

Exception for application level STOMP protocol violations, i.e., for any additional rules that the application applying STOMP imposes

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, frame = nil) ⇒ ApplicationError

Create exception

Parameters:

  • message (String)

    describing error

  • frame (Frame, NilClass) (defaults to: nil)

    that caused error



60
61
62
63
# File 'lib/stomp_out/errors.rb', line 60

def initialize(message, frame = nil)
  @frame = frame
  super(message)
end

Instance Attribute Details

#frameObject (readonly)

Frame, NilClass

Frame for which error occurred



54
55
56
# File 'lib/stomp_out/errors.rb', line 54

def frame
  @frame
end