Exception: Uncomtrade::ResponseError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, description, msg) ⇒ ResponseError

Returns a new instance of ResponseError.



12
13
14
15
16
# File 'lib/uncomtrade/errors.rb', line 12

def initialize(status, description, msg)
  @status = status
  @description = description
  super(msg)
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



11
12
13
# File 'lib/uncomtrade/errors.rb', line 11

def description
  @description
end

#statusObject (readonly)

Returns the value of attribute status.



11
12
13
# File 'lib/uncomtrade/errors.rb', line 11

def status
  @status
end