Exception: Airtable::ORM::ApiError

Inherits:
Error
  • Object
show all
Defined in:
lib/airtable/orm/errors.rb

Overview

Raised when API communication fails

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status: nil, response: nil) ⇒ ApiError

Returns a new instance of ApiError.



47
48
49
50
51
# File 'lib/airtable/orm/errors.rb', line 47

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



45
46
47
# File 'lib/airtable/orm/errors.rb', line 45

def response
  @response
end

#statusObject (readonly)

Returns the value of attribute status.



45
46
47
# File 'lib/airtable/orm/errors.rb', line 45

def status
  @status
end