Exception: Ondotori::WebAPI::Api::Errors::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Ondotori::WebAPI::Api::Errors::Error
- Defined in:
- lib/ondotori/webapi/api/errors.rb
Direct Known Subclasses
HttpAccessError, InitializeParameterNotFound, InvaildParameter, ResponseError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message, code = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code = nil) ⇒ Error
Returns a new instance of Error.
10 11 12 13 |
# File 'lib/ondotori/webapi/api/errors.rb', line 10 def initialize(, code = nil) super @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
8 9 10 |
# File 'lib/ondotori/webapi/api/errors.rb', line 8 def code @code end |