Exception: StompPublisher::ConnectionError
- Inherits:
-
Exception
- Object
- Exception
- StompPublisher::ConnectionError
- Defined in:
- lib/stomp_publisher/connection_error.rb
Instance Attribute Summary collapse
-
#frame ⇒ Object
Returns the value of attribute frame.
Instance Method Summary collapse
-
#initialize(msg, frame) ⇒ ConnectionError
constructor
A new instance of ConnectionError.
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
#frame ⇒ Object
Returns the value of attribute frame.
3 4 5 |
# File 'lib/stomp_publisher/connection_error.rb', line 3 def frame @frame end |