mirror of
https://gitee.com/willfree/min-dev-java.git
synced 2026-10-04 19:42:01 +08:00
add error handle: ElementContainer
This commit is contained in:
1 parent
8a2da10583
commit
28f963c28a
14 files changed
+40
-43
No files matched your search
@@ -57,7 +57,7 @@ public class MutableDangerousField implements TlvComponentBase, IEncodingAble {
|
||||
*/
|
||||
public Block getBlockByType(VlInt tlvType) throws ComponentException {
|
||||
try {
|
||||
return this.blocks.getElement(tlvType);
|
||||
return this.blocks.getBlockByType(tlvType);
|
||||
} catch (BlockException e) {
|
||||
throw new ComponentException("MutableDangerousField.getBlockByType: "+e.getMessage());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user