Exception: Hominid::APIError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hominid/api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ APIError

Returns a new instance of APIError.



53
54
55
56
# File 'lib/hominid/api.rb', line 53

def initialize(error)
  self.fault_code = error.faultCode
  super("<#{error.faultCode}> #{error.message}")
end

Instance Attribute Details

#fault_codeObject

Returns the value of attribute fault_code.



52
53
54
# File 'lib/hominid/api.rb', line 52

def fault_code
  @fault_code
end