aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/sms/SnsSmsClient.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar/sms/SnsSmsClient.java')
-rw-r--r--src/main/java/org/traccar/sms/SnsSmsClient.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/org/traccar/sms/SnsSmsClient.java b/src/main/java/org/traccar/sms/SnsSmsClient.java
index 0c2be0bd2..c2d568aa8 100644
--- a/src/main/java/org/traccar/sms/SnsSmsClient.java
+++ b/src/main/java/org/traccar/sms/SnsSmsClient.java
@@ -69,10 +69,8 @@ public class SnsSmsClient implements SmsManager {
public void sendMessageAsync(String destAddress, String message, boolean command) {
try {
sendMessageSync(destAddress, message, command);
- } catch (InterruptedException interruptedException) {
- LOGGER.warn("SMS send failed", interruptedException.getMessage());
- } catch (MessageException messageException) {
- LOGGER.warn("SMS send failed", messageException.getMessage());
+ } catch (InterruptedException | MessageException exception) {
+ LOGGER.warn("SMS send failed", exception.getMessage());
}
}
}