mirror of
https://gitee.com/willfree/min-dev-java.git
synced 2026-10-04 19:42:01 +08:00
fixed error handle
This commit is contained in:
1 parent
7bf0906291
commit
adf834a4e9
10 files changed
+31
-67
No files matched your search
@@ -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){
|
||||
|
||||
Reference in new issue
Block a user