mirror of
https://gitee.com/willfree/min-dev-java.git
synced 2026-10-04 19:42:01 +08:00
add handle error: MINPacket
This commit is contained in:
1 parent
b8e6896585
commit
b93e21ffaf
1 file changed
+7
-1
@@ -115,7 +115,13 @@ public class MINPacket implements IEncodingAble {
|
||||
int elementSize=block.getSubElements().length();
|
||||
for (int i=0;i<elementSize;i++) {
|
||||
Block cacheBlock=block.getSubElements().getBlock(i);
|
||||
switch (cacheBlock.getType().getVlIntValue2Int()){
|
||||
int judgeType= 0;
|
||||
try {
|
||||
judgeType = cacheBlock.getType().getVlIntValue2Int();
|
||||
} catch (VlIntException e) {
|
||||
throw new Error("MINPacket.wireDecode: "+e.getMessage());
|
||||
}
|
||||
switch (judgeType){
|
||||
case TLV.TlvIdentifierField: // 目的标识区
|
||||
// 解析标识区,保证其中至少存在一个标识
|
||||
if(!cacheBlock.parseSubElements()){
|
||||
|
||||
Reference in new issue
Block a user