aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/sms
diff options
context:
space:
mode:
authorMarcos Dallagnelo <marcos.dallagnelo@gmail.com>2018-08-17 09:02:21 -0300
committerMarcos Dallagnelo <marcos.dallagnelo@gmail.com>2018-08-17 09:02:21 -0300
commit0ec4e06e7319afc8aa01f38dbe26ad31aac84776 (patch)
tree7624f272bd4a49ad9c908643caa117c6e0da5064 /src/org/traccar/sms
parent6d6a8949a598ff9aac9370655e2e0bd759391368 (diff)
downloadtraccar-server-0ec4e06e7319afc8aa01f38dbe26ad31aac84776.tar.gz
traccar-server-0ec4e06e7319afc8aa01f38dbe26ad31aac84776.tar.bz2
traccar-server-0ec4e06e7319afc8aa01f38dbe26ad31aac84776.zip
Add constructor to MessageException class
Diffstat (limited to 'src/org/traccar/sms')
-rw-r--r--src/org/traccar/sms/SmsGatewayClient.java2
1 files changed, 1 insertions, 1 deletions
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);
}
}