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)



42
43
44
45
# File 'lib/fmq/queue_manager.rb', line 42

def initialize(message, callstack = [])
  @message = message
  @backtrace = callstack
end

Instance Attribute Details

#backtraceObject

Returns the value of attribute backtrace.



39
40
41
# File 'lib/fmq/queue_manager.rb', line 39

def backtrace
  @backtrace
end

#messageObject

Returns the value of attribute message.



39
40
41
# File 'lib/fmq/queue_manager.rb', line 39

def message
  @message
end

Instance Method Details

#to_sObject

Returns the message of the exception



48
49
50
# File 'lib/fmq/queue_manager.rb', line 48

def to_s
  @message
end