Exception: Twilio::REST::RequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/twilio-ruby/rest/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code = nil) ⇒ RequestError

Returns a new instance of RequestError.



8
9
10
11
# File 'lib/twilio-ruby/rest/errors.rb', line 8

def initialize(message, code=nil);
  super message
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



6
7
8
# File 'lib/twilio-ruby/rest/errors.rb', line 6

def code
  @code
end