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

+1 -1
View File
@@ -61,7 +61,7 @@ public class ReadOnlyField 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("ReadOnlyField.getBlockType: " + e.getMessage());
}