Exception: Notion::NotionError
- Inherits:
-
StandardError
- Object
- StandardError
- Notion::NotionError
- Defined in:
- lib/notion-sdk-ruby/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message = nil, body: nil) ⇒ NotionError
constructor
A new instance of NotionError.
Constructor Details
#initialize(message = nil, body: nil) ⇒ NotionError
Returns a new instance of NotionError.
37 38 39 40 |
# File 'lib/notion-sdk-ruby/error.rb', line 37 def initialize( = nil, body: nil) @message = @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
35 36 37 |
# File 'lib/notion-sdk-ruby/error.rb', line 35 def body @body end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
35 36 37 |
# File 'lib/notion-sdk-ruby/error.rb', line 35 def @message end |