Exception: TeamworkApi::TeamworkError
- Inherits:
-
StandardError
- Object
- StandardError
- TeamworkApi::TeamworkError
- Defined in:
- lib/teamwork_api/error.rb
Overview
baser error
Direct Known Subclasses
Error, NotFoundError, TooManyRequests, UnauthenticatedError, UnprocessableEntity
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message, response = nil) ⇒ TeamworkError
constructor
A new instance of TeamworkError.
Constructor Details
#initialize(message, response = nil) ⇒ TeamworkError
Returns a new instance of TeamworkError.
10 11 12 13 |
# File 'lib/teamwork_api/error.rb', line 10 def initialize(, response = nil) super() @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
8 9 10 |
# File 'lib/teamwork_api/error.rb', line 8 def response @response end |