We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d73dd84 commit 807db57Copy full SHA for 807db57
1 file changed
src/main/java/com/sendgrid/SendGrid.java
@@ -148,7 +148,7 @@ public SendGrid.Response send(Email email) throws SendGridException {
148
HttpResponse res = this.client.execute(httppost);
149
return new SendGrid.Response(res.getStatusLine().getStatusCode(), EntityUtils.toString(res.getEntity()));
150
} catch (IOException e) {
151
- return new SendGrid.Response(500, "Problem connecting to SendGrid");
+ throw new SendGridException(e);
152
}
153
154
0 commit comments