Exception: Airtable::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/airtable/error.rb

Overview

Error class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_hash) ⇒ Error

“message”=>“Could not find fields foo”}



9
10
11
12
13
# File 'lib/airtable/error.rb', line 9

def initialize(error_hash)
  @message = error_hash['message']
  @type = error_hash['type']
  super(@message)
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



5
6
7
# File 'lib/airtable/error.rb', line 5

def message
  @message
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/airtable/error.rb', line 5

def type
  @type
end