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)



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

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

Instance Attribute Details

#backtraceObject

Returns the value of attribute backtrace.



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

def backtrace
  @backtrace
end

#messageObject

Returns the value of attribute message.



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

def message
  @message
end

Instance Method Details

#to_sObject

Returns the message of the exception



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

def to_s
  @message
end