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
8 9 10 11 12 13 14 |
# File 'lib/fog/joyent/errors.rb', line 8 def if response.body["code"] && response.body["message"] "[ERROR #{response.body['code']}] : #{response.body['message']}" else '' end end |
#to_s ⇒ Object
16 17 18 |
# File 'lib/fog/joyent/errors.rb', line 16 def to_s end |