Class: Notion::Api::Errors::NotionError
- Inherits:
-
Faraday::Error
- Object
- Faraday::Error
- Notion::Api::Errors::NotionError
- Defined in:
- lib/notion/api/errors/notion_error.rb
Direct Known Subclasses
BadRequest, Forbidden, InternalError, InvalidRequest, ObjectNotFound, Unauthorized
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message, details, response = nil) ⇒ NotionError
constructor
A new instance of NotionError.
Constructor Details
#initialize(message, details, response = nil) ⇒ NotionError
Returns a new instance of NotionError.
8 9 10 11 |
# File 'lib/notion/api/errors/notion_error.rb', line 8 def initialize(, details, response = nil) super("#{} #{details}") @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/notion/api/errors/notion_error.rb', line 6 def response @response end |