Exception: FreeMessageQueue::QueueManagerException

Inherits:
Exception
  • Object
show all
Defined in:
lib/fmq/queue_manager.rb

Overview

All queue manager exceptions are raised using this class

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, callstack = [])
  @message = message
  @backtrace = callstack
end

Instance Attribute Details

#backtraceObject

Returns the value of attribute backtrace.



22
23
24
# File 'lib/fmq/queue_manager.rb', line 22

def backtrace
  @backtrace
end

#messageObject

Returns the value of attribute message.



22
23
24
# File 'lib/fmq/queue_manager.rb', line 22

def message
  @message
end

Instance Method Details

#to_sObject

Returns the message of the exception



31
32
33
# File 'lib/fmq/queue_manager.rb', line 31

def to_s
  @message
end