Exception: Telerivet::APIException

Inherits:
Exception
  • Object
show all
Defined in:
lib/telerivet.rb

Direct Known Subclasses

InvalidParameterException, NotFoundException

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, code) ⇒ APIException

Returns a new instance of APIException.



287
288
289
290
# File 'lib/telerivet.rb', line 287

def initialize(msg, code)
    @code = code
    super(msg)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



285
286
287
# File 'lib/telerivet.rb', line 285

def code
  @code
end