Exception: SoftLayer::Exception

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

Overview

An Exception proxy class Not every exception soap4r returns decends from RuntimeError.

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Exception

Returns a new instance of Exception.



79
80
81
82
83
84
85
86
87
# File 'lib/softlayer/util.rb', line 79

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