Exception: Populr::APIError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, error) ⇒ APIError

Returns a new instance of APIError.



19
20
21
22
# File 'lib/populr.rb', line 19

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

Instance Attribute Details

#error_typeObject

Returns the value of attribute error_type.



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

def error_type
  @error_type
end