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
@@ -117,11 +117,7 @@ public class SignatureInfo implements TlvComponentBase, IEncodingAble {
|
||||
totalLength+=tmplen;
|
||||
}
|
||||
int tmplen= 0;
|
||||
try {
|
||||
tmplen = this.signatureType.wireEncode(encoder);
|
||||
} catch (EncoderException e) {
|
||||
throw new ComponentException("SignatureInfo.wireEncode: "+e.getMessage());
|
||||
}
|
||||
tmplen = this.signatureType.wireEncode(encoder);
|
||||
if(tmplen<=0){
|
||||
return -1;
|
||||
}
|
||||
@@ -185,12 +181,8 @@ public class SignatureInfo implements TlvComponentBase, IEncodingAble {
|
||||
}
|
||||
switch (type){
|
||||
case TLV.TlvSignatureType:
|
||||
try {
|
||||
if(!this.signatureType.wireDecode(cacheBlock)){
|
||||
return false;
|
||||
}
|
||||
} catch (VlIntException e) {
|
||||
throw new ComponentException("SignatureInfo.wireDecode: "+e.getMessage());
|
||||
if(!this.signatureType.wireDecode(cacheBlock)){
|
||||
return false;
|
||||
}
|
||||
findSignatureType=true;
|
||||
case TLV.TlvKeyLocator:
|
||||
|
||||
Reference in new issue
Block a user