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.



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

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.



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

def fault_code
  @fault_code
end