Exception: Twilio::REST::RequestError
- Inherits:
-
StandardError
- Object
- StandardError
- Twilio::REST::RequestError
- Defined in:
- lib/twilio-ruby/rest/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message, code = nil) ⇒ RequestError
constructor
A new instance of RequestError.
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(, code=nil); super @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
6 7 8 |
# File 'lib/twilio-ruby/rest/errors.rb', line 6 def code @code end |