diff --git a/iot-modbus-netty/src/main/java/com/takeoff/iot/modbus/netty/handle/MiiMessageDecoder.java b/iot-modbus-netty/src/main/java/com/takeoff/iot/modbus/netty/handle/MiiMessageDecoder.java index 8e9e7a5ae2ae17f6600d9d31162d365d950d37e9..c9cdec956059476759fb4f1a93715328c0808867 100644 --- a/iot-modbus-netty/src/main/java/com/takeoff/iot/modbus/netty/handle/MiiMessageDecoder.java +++ b/iot-modbus-netty/src/main/java/com/takeoff/iot/modbus/netty/handle/MiiMessageDecoder.java @@ -29,7 +29,7 @@ public class MiiMessageDecoder extends ByteToMessageDecoder { } @Override - protected void decode(ChannelHandlerContext ctx, ByteBuf in, List out) throws Exception { + protected void decode(ChannelHandlerContext ctx, ByteBuf in, List out) { try { byte[] array = new byte[in.readableBytes()]; in.readBytes(array); @@ -39,7 +39,6 @@ public class MiiMessageDecoder extends ByteToMessageDecoder { out.add(msg); } catch (Exception e) { log.error(e.getMessage(), e); - throw e; } } }