Skip to content

Add check to see if submission was done correctly #9

Closed

Description

@foens

So far there is no checks in the code for errors. Sending an email with no subject is blindly accepted. What about adding a check like:

if(!request.ok())
throw new RuntimeException(request.body());

in the web() method?

Activity

  1. motdotla commented on Nov 19, 2013

    @motdotla
    Contributor

    I'll consider this. For now foens, you have to do the following:

    String response = sendgrid.send();
    

    You'll get a json string back. Convert that to json and parse it to do your check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions