Exception: Xero::Api::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Xero::Api::Error
- Defined in:
- lib/xero/api/error.rb
Direct Known Subclasses
BadRequest, InternalError, NotFound, NotImplemented, PreconditionFailed, ServiceUnavailable, Unauthorized
Instance Attribute Summary collapse
-
#fault ⇒ Object
readonly
Returns the value of attribute fault.
Instance Method Summary collapse
-
#initialize(errors = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(errors = nil) ⇒ Error
Returns a new instance of Error.
5 6 7 8 9 10 |
# File 'lib/xero/api/error.rb', line 5 def initialize(errors = nil) if errors @fault = errors super(errors) end end |
Instance Attribute Details
#fault ⇒ Object (readonly)
Returns the value of attribute fault.
4 5 6 |
# File 'lib/xero/api/error.rb', line 4 def fault @fault end |