Exception: Sendgrid::API::REST::Errors::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Sendgrid::API::REST::Errors::Error
- Defined in:
- lib/sendgrid/api/rest/errors/error.rb
Direct Known Subclasses
BadRequest, Forbidden, Unauthorized, Unknown, UnprocessableEntity
Class Method Summary collapse
Class Method Details
.from_response(env) ⇒ Object
10 11 12 |
# File 'lib/sendgrid/api/rest/errors/error.rb', line 10 def from_response(env) status_error(env) || body_error(env) end |