Exception: Hominid::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- Hominid::APIError
- Defined in:
- lib/hominid/api.rb
Instance Attribute Summary collapse
-
#fault_code ⇒ Object
Returns the value of attribute fault_code.
Instance Method Summary collapse
-
#initialize(error) ⇒ APIError
constructor
A new instance of APIError.
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.}") end |
Instance Attribute Details
#fault_code ⇒ Object
Returns the value of attribute fault_code.
52 53 54 |
# File 'lib/hominid/api.rb', line 52 def fault_code @fault_code end |