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.



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

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



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

def code
  @code
end