Exception: Sendgrid::API::REST::Errors::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sendgrid/api/rest/errors/error.rb

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