fixed error handle

This commit is contained in:
free will committed 2021-03-24 11:22:23 +08:00
1 parent 7bf0906291
commit adf834a4e9
10 files changed
+31 -67

No files matched your search

+4 -4
View File
@@ -87,7 +87,7 @@ public class Data implements IEncodingAble,InteractWithField {
Block block= null;
try {
block = new SelfEncodingBase().selfWireEncode(this.congestionMark);
} catch (EncoderException | BlockException e) {
} catch (EncoderException | BlockException | ComponentException e) {
throw new PacketException("Data.fillDataToFields: "+e.getMessage());
}
if(block==null){
@@ -111,7 +111,7 @@ public class Data implements IEncodingAble,InteractWithField {
if(this.freshnessPeriod.isInitial()){
try {
block=new SelfEncodingBase().selfWireEncode(this.freshnessPeriod);
} catch (EncoderException | BlockException e) {
} catch (EncoderException | BlockException | ComponentException e) {
throw new PacketException("Data.fillDataToFields: "+e.getMessage());
}
if(block==null){
@@ -124,7 +124,7 @@ public class Data implements IEncodingAble,InteractWithField {
if(this.nackHeader.isInitial()){
try {
block=new SelfEncodingBase().selfWireEncode(this.nackHeader);
} catch (EncoderException | BlockException e) {
} catch (EncoderException | BlockException | ComponentException e) {
throw new PacketException("Data.fillDataToFields: "+e.getMessage());
}
if(block==null){
@@ -136,7 +136,7 @@ public class Data implements IEncodingAble,InteractWithField {
// Payload
try {
block=new SelfEncodingBase().selfWireEncode(this.payload);
} catch (EncoderException | BlockException e) {
} catch (EncoderException | BlockException | ComponentException e) {
throw new PacketException("Data.fillDataToFields: "+e.getMessage());
}
if(block==null){