Class: Mqlight::ExceptionContainer

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

Overview

A container for any exception

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exception) ⇒ ExceptionContainer

Returns a new instance of ExceptionContainer.



82
83
84
# File 'lib/mqlight/exceptions.rb', line 82

def initialize(exception)
  @exception = exception
end

Instance Attribute Details

#exceptionObject (readonly)

Returns the value of attribute exception.



80
81
82
# File 'lib/mqlight/exceptions.rb', line 80

def exception
  @exception
end