diff options
author | Abyss777 <abyss@fox5.ru> | 2017-03-05 12:03:03 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-03-05 12:03:03 +0500 |
commit | 075307c35605cb6ad9ebbdf547fee8e649507098 (patch) | |
tree | fa67f4d153e3de61e9db5fdca652e3e653cd157d /src/org/traccar/BaseProtocol.java | |
parent | f882c2e248fdf1eb87f3ccc339e943c74a6c8dff (diff) | |
download | trackermap-server-075307c35605cb6ad9ebbdf547fee8e649507098.tar.gz trackermap-server-075307c35605cb6ad9ebbdf547fee8e649507098.tar.bz2 trackermap-server-075307c35605cb6ad9ebbdf547fee8e649507098.zip |
One more combine exceptions to generic
Diffstat (limited to 'src/org/traccar/BaseProtocol.java')
-rw-r--r-- | src/org/traccar/BaseProtocol.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/org/traccar/BaseProtocol.java b/src/org/traccar/BaseProtocol.java index 790a1484c..bccc4e184 100644 --- a/src/org/traccar/BaseProtocol.java +++ b/src/org/traccar/BaseProtocol.java @@ -20,11 +20,6 @@ import org.jboss.netty.handler.codec.string.StringEncoder; import org.traccar.database.ActiveDevice; import org.traccar.model.Command; -import com.cloudhopper.smpp.type.RecoverablePduException; -import com.cloudhopper.smpp.type.SmppChannelException; -import com.cloudhopper.smpp.type.SmppTimeoutException; -import com.cloudhopper.smpp.type.UnrecoverablePduException; - import javax.xml.bind.DatatypeConverter; import java.util.Arrays; import java.util.Collection; @@ -91,8 +86,7 @@ public abstract class BaseProtocol implements Protocol { } @Override - public void sendSmsCommand(String phone, Command command) throws RecoverablePduException, UnrecoverablePduException, - SmppTimeoutException, SmppChannelException, InterruptedException { + public void sendSmsCommand(String phone, Command command) throws Exception { if (Context.getSmppManager() != null) { if (command.getType().equals(Command.TYPE_CUSTOM)) { Context.getSmppManager().sendMessageSync(phone, command.getString(Command.KEY_DATA), true); |