Exception: Twilio::REST::RestErrorV10
- Inherits:
-
TwilioError
- Object
- StandardError
- TwilioError
- Twilio::REST::RestErrorV10
- Defined in:
- lib/twilio-ruby/framework/rest/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#http_status_code ⇒ Object
Returns the value of attribute http_status_code.
-
#message ⇒ Object
Returns the value of attribute message.
-
#params ⇒ Object
Returns the value of attribute params.
-
#user_error ⇒ Object
Returns the value of attribute user_error.
Instance Method Summary collapse
-
#initialize(response) ⇒ RestErrorV10
constructor
A new instance of RestErrorV10.
- #to_s ⇒ Object
Constructor Details
#initialize(response) ⇒ RestErrorV10
Returns a new instance of RestErrorV10.
42 43 44 45 46 47 48 |
# File 'lib/twilio-ruby/framework/rest/error.rb', line 42 def initialize(response) @code = response['code'] = response['message'] @http_status_code = response['httpsStatusCode'] @params = response['params'] @user_error = response['userError'] end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
40 41 42 |
# File 'lib/twilio-ruby/framework/rest/error.rb', line 40 def code @code end |
#http_status_code ⇒ Object
Returns the value of attribute http_status_code.
40 41 42 |
# File 'lib/twilio-ruby/framework/rest/error.rb', line 40 def http_status_code @http_status_code end |
#message ⇒ Object
Returns the value of attribute message.
40 41 42 |
# File 'lib/twilio-ruby/framework/rest/error.rb', line 40 def end |
#params ⇒ Object
Returns the value of attribute params.
40 41 42 |
# File 'lib/twilio-ruby/framework/rest/error.rb', line 40 def params @params end |
#user_error ⇒ Object
Returns the value of attribute user_error.
40 41 42 |
# File 'lib/twilio-ruby/framework/rest/error.rb', line 40 def user_error @user_error end |
Instance Method Details
#to_s ⇒ Object
50 51 52 |
# File 'lib/twilio-ruby/framework/rest/error.rb', line 50 def to_s end |