Exception: DiscourseApi::DiscourseError
- Inherits:
-
StandardError
- Object
- StandardError
- DiscourseApi::DiscourseError
- Defined in:
- lib/discourse_api/error.rb
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) ⇒ DiscourseError
constructor
A new instance of DiscourseError.
Constructor Details
#initialize(message, response = nil) ⇒ DiscourseError
Returns a new instance of DiscourseError.
6 7 8 9 |
# File 'lib/discourse_api/error.rb', line 6 def initialize(, response = nil) super() @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
4 5 6 |
# File 'lib/discourse_api/error.rb', line 4 def response @response end |