Class: Notion::Errors::HttpError
- Inherits:
-
Faraday::Error
- Object
- Faraday::Error
- Notion::Errors::HttpError
- Defined in:
- lib/notion/errors/http_error.rb
Overview
Collect all http errors
Direct Known Subclasses
ConflictError, DatabaseConnectionUnavailableError, GatewayTimeoutError, InternalServerError, InvalidJsonError, InvalidRequestError, InvalidRequestUrlError, MissingVersionError, ObjectNotFoundError, ParsingError, RateLimitedError, RestrictedResourceError, ServiceUnavailableError, TimeoutError, UnauthorizedError, ValidationError
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(code, message, response = nil) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(code, message, response = nil) ⇒ HttpError
Returns a new instance of HttpError.
9 10 11 12 |
# File 'lib/notion/errors/http_error.rb', line 9 def initialize(code, , response = nil) super("Code: #{code}, Message: \"#{}\"") @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
7 8 9 |
# File 'lib/notion/errors/http_error.rb', line 7 def response @response end |