Class: Sendgrid::API::REST::Response::ParseError

Inherits:
Faraday::Response::Middleware
  • Object
show all
Defined in:
lib/sendgrid/api/rest/response/parse_error.rb

Instance Method Summary collapse

Instance Method Details

#on_complete(env) ⇒ Object



10
11
12
13
# File 'lib/sendgrid/api/rest/response/parse_error.rb', line 10

def on_complete(env)
  error = REST::Errors::Error.from_response(env)
  raise error unless error.nil?
end