Exception: StompPublisher::ConnectionError

Inherits:
Exception
  • Object
show all
Defined in:
lib/stomp_publisher/connection_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, frame) ⇒ ConnectionError

Returns a new instance of ConnectionError.



5
6
7
8
9
10
11
12
# File 'lib/stomp_publisher/connection_error.rb', line 5

def initialize(msg, frame)
  self.frame = frame
  if (frame && frame.command == "ERROR" && !frame.body.nil? && frame.body.length > 0)
    msg = "%s: %s" % [ msg, frame.body ]
  end

  super(msg)
end

Instance Attribute Details

#frameObject

Returns the value of attribute frame.



3
4
5
# File 'lib/stomp_publisher/connection_error.rb', line 3

def frame
  @frame
end