Exception: TAM::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/tam/error.rb

Overview

Custom error class for rescuing from all telco asset marketplace errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, body = '') ⇒ Error

Returns a new instance of Error.



6
7
8
9
# File 'lib/tam/error.rb', line 6

def initialize(message, body = '')
  @body = body
  super message
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



4
5
6
# File 'lib/tam/error.rb', line 4

def body
  @body
end