Exception: FreeMessageQueue::QueueManagerException
- Inherits:
-
Exception
- Object
- Exception
- FreeMessageQueue::QueueManagerException
- Defined in:
- lib/fmq/queue_manager.rb
Overview
All queue manager exceptions are raised using this class
Instance Attribute Summary collapse
-
#backtrace ⇒ Object
Returns the value of attribute backtrace.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message, callstack = []) ⇒ QueueManagerException
constructor
Create exception with message and backtrace (if needed).
-
#to_s ⇒ Object
Returns the message of the exception.
Constructor Details
#initialize(message, callstack = []) ⇒ QueueManagerException
Create exception with message and backtrace (if needed)
25 26 27 28 |
# File 'lib/fmq/queue_manager.rb', line 25 def initialize(, callstack = []) @message = @backtrace = callstack end |
Instance Attribute Details
#backtrace ⇒ Object
Returns the value of attribute backtrace.
22 23 24 |
# File 'lib/fmq/queue_manager.rb', line 22 def backtrace @backtrace end |
#message ⇒ Object
Returns the value of attribute message.
22 23 24 |
# File 'lib/fmq/queue_manager.rb', line 22 def @message end |
Instance Method Details
#to_s ⇒ Object
Returns the message of the exception
31 32 33 |
# File 'lib/fmq/queue_manager.rb', line 31 def to_s @message end |