Exception: SoftLayer::Exception

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/softlayer.rb

Overview

An Exception proxy class This doesn’t do anything yet, but it probably will at some point.

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Exception

Returns a new instance of Exception.



166
167
168
169
170
171
172
173
174
# File 'lib/softlayer.rb', line 166

def initialize(args)
  e = args[:exception]
  message = args[:message] unless args[:message].nil?
  message = e.message unless e.nil?
  super(message)
  
  @realException = e unless e.nil?
  @realException = self if @realException.nil?
end