Exception: Attio::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/attio/errors.rb

Overview

Base error class for all Attio errors

Since:

  • 1.0.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, response: nil, code: nil) ⇒ Error

Returns a new instance of Error.

Since:

  • 1.0.0



8
9
10
11
12
# File 'lib/attio/errors.rb', line 8

def initialize(message = nil, response: nil, code: nil)
  @response = response
  @code = code
  super(message)
end

Instance Attribute Details

#codeObject (readonly)

Since:

  • 1.0.0



6
7
8
# File 'lib/attio/errors.rb', line 6

def code
  @code
end

#responseObject (readonly)

Since:

  • 1.0.0



6
7
8
# File 'lib/attio/errors.rb', line 6

def response
  @response
end