Exception: NounProjectApi::ServiceError
- Inherits:
-
StandardError
- Object
- StandardError
- NounProjectApi::ServiceError
- Defined in:
- lib/noun_project_api/errors.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, body) ⇒ ServiceError
constructor
A new instance of ServiceError.
Constructor Details
#initialize(status, body) ⇒ ServiceError
Returns a new instance of ServiceError.
7 8 9 10 11 12 |
# File 'lib/noun_project_api/errors.rb', line 7 def initialize(status, body) @status = status @body = body super("Noun Project API Error") end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
5 6 7 |
# File 'lib/noun_project_api/errors.rb', line 5 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/noun_project_api/errors.rb', line 5 def status @status end |