Exception: Mqlight::InternalError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mqlight/exceptions.rb

Overview

The operation failed due to an internal condition.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cause) ⇒ InternalError

Returns a new instance of InternalError.



68
69
70
71
72
73
74
75
# File 'lib/mqlight/exceptions.rb', line 68

def initialize(cause)
  if cause.is_a? String
    super(cause)
  else
    super(cause.message)
  end
  @cause = cause
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



66
67
68
# File 'lib/mqlight/exceptions.rb', line 66

def cause
  @cause
end