Exception: FreeMessageQueue::QueueException

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

Overview

All queue exceptions are raised using this class

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Instance Attribute Details

#backtraceObject

Returns the value of attribute backtrace.



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

def backtrace
  @backtrace
end

#messageObject

Returns the value of attribute message.



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

def message
  @message
end

Instance Method Details

#to_sObject

Returns the message of the exception



56
57
58
# File 'lib/fmq/queues/base.rb', line 56

def to_s
  @message
end