Exception: Inbox::APIError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, error) ⇒ APIError

Returns a new instance of APIError.



17
18
19
20
# File 'lib/inbox.rb', line 17

def initialize(type, error)
  super(error)
  self.error_type = type
end

Instance Attribute Details

#error_typeObject

Returns the value of attribute error_type.



16
17
18
# File 'lib/inbox.rb', line 16

def error_type
  @error_type
end