Exception: Notion::NotionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/notion-sdk-ruby/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message = nil, body: nil)
  @message = message
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.


35
36
37
# File 'lib/notion-sdk-ruby/error.rb', line 35

def body
  @body
end

#messageObject (readonly)

Returns the value of attribute message.


35
36
37
# File 'lib/notion-sdk-ruby/error.rb', line 35

def message
  @message
end