From 0ec4e06e7319afc8aa01f38dbe26ad31aac84776 Mon Sep 17 00:00:00 2001 From: Marcos Dallagnelo Date: Fri, 17 Aug 2018 09:02:21 -0300 Subject: Add constructor to MessageException class --- src/org/traccar/sms/SmsGatewayClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar/sms') diff --git a/src/org/traccar/sms/SmsGatewayClient.java b/src/org/traccar/sms/SmsGatewayClient.java index da0b59ec1..ea2df6881 100644 --- a/src/org/traccar/sms/SmsGatewayClient.java +++ b/src/org/traccar/sms/SmsGatewayClient.java @@ -60,7 +60,7 @@ public class SmsGatewayClient implements SmsManager { Response response = getRequestBuilder().post(Entity.json(preparePayload(destAddress, message))); if (!response.getStatusInfo().equals(Response.Status.OK)) { String output = response.readEntity(String.class); - throw new MessageException(new Exception(output)); + throw new MessageException(output); } } -- cgit v1.2.3