Exception: RightScale::Exceptions::NestedException

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

Overview

Base exception for use in nesting exceptions

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, nested_exception = nil) ⇒ NestedException

Exception message and optional nested exception or string



32
33
34
35
# File 'lib/right_agent/exceptions.rb', line 32

def initialize(message, nested_exception = nil)
  @nested_exception = nested_exception
  super(message)
end

Instance Attribute Details

#nested_exceptionObject (readonly)

Returns the value of attribute nested_exception.



29
30
31
# File 'lib/right_agent/exceptions.rb', line 29

def nested_exception
  @nested_exception
end