Exception: FreeMessageQueue::QueueException
- Inherits:
-
Exception
- Object
- Exception
- FreeMessageQueue::QueueException
- Defined in:
- lib/fmq/queues/base.rb
Overview
All queue 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 = []) ⇒ QueueException
constructor
Create exception with message and backtrace (if needed).
-
#to_s ⇒ Object
Returns the message of the exception.
Constructor Details
#initialize(message, callstack = []) ⇒ QueueException
Create exception with message and backtrace (if needed)
50 51 52 53 |
# File 'lib/fmq/queues/base.rb', line 50 def initialize(, callstack = []) = @backtrace = callstack end |
Instance Attribute Details
#backtrace ⇒ Object
Returns the value of attribute backtrace.
47 48 49 |
# File 'lib/fmq/queues/base.rb', line 47 def backtrace @backtrace end |
#message ⇒ Object
Returns the value of attribute message.
47 48 49 |
# File 'lib/fmq/queues/base.rb', line 47 def end |
Instance Method Details
#to_s ⇒ Object
Returns the message of the exception
56 57 58 |
# File 'lib/fmq/queues/base.rb', line 56 def to_s end |