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)
41 42 43 44 |
# File 'lib/fmq/queue_manager.rb', line 41 def initialize(, callstack = []) @message = @backtrace = callstack end |
Instance Attribute Details
#backtrace ⇒ Object
Returns the value of attribute backtrace.
38 39 40 |
# File 'lib/fmq/queue_manager.rb', line 38 def backtrace @backtrace end |
#message ⇒ Object
Returns the value of attribute message.
38 39 40 |
# File 'lib/fmq/queue_manager.rb', line 38 def @message end |
Instance Method Details
#to_s ⇒ Object
Returns the message of the exception
47 48 49 |
# File 'lib/fmq/queue_manager.rb', line 47 def to_s @message end |