Exception: Makeleaps::APIError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status = nil) ⇒ APIError

Returns a new instance of APIError.



7
8
9
10
# File 'lib/makeleaps/errors.rb', line 7

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

Instance Attribute Details

#statusObject

Returns the value of attribute status.



5
6
7
# File 'lib/makeleaps/errors.rb', line 5

def status
  @status
end