Exception: Giggly::Rest::SocializeError
- Inherits:
-
StandardError
- Object
- StandardError
- Giggly::Rest::SocializeError
- Defined in:
- lib/giggly/rest.rb
Direct Known Subclasses
BadRequest, Forbidden, InternalServerError, LengthRequired, NotFound, NotImplemented, RequestEntityTooLarge, Unauthorized
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(error_data) ⇒ SocializeError
constructor
A new instance of SocializeError.
Constructor Details
#initialize(error_data) ⇒ SocializeError
Returns a new instance of SocializeError.
11 12 13 14 |
# File 'lib/giggly/rest.rb', line 11 def initialize(error_data) @error_code = error_data["errorCode"] super(error_data["errorMessage"]) end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
9 10 11 |
# File 'lib/giggly/rest.rb', line 9 def error_code @error_code end |