Module: Fog::Compute::Joyent::Errors::MessageParserMixin
- Included in:
- BadRequest, Conflict, Forbidden, MethodNotAllowed, NotAcceptable, NotFound, PolicyNotForfilled, RequestEntityTooLarge, RetryWith, ServiceUnavailable, Unauthorized, UnsupportedMediaType
- Defined in:
- lib/fog/joyent/errors.rb
Instance Method Summary collapse
Instance Method Details
#message ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/fog/joyent/errors.rb', line 7 def if response.body["code"] && response.body["message"] "[ERROR #{response.body['code']}] : #{response.body['message']}" else '' end end |
#to_s ⇒ Object
15 16 17 |
# File 'lib/fog/joyent/errors.rb', line 15 def to_s end |