add error handle: ElementContainer

This commit is contained in:
free will committed 2021-03-25 20:04:37 +08:00
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());
}