public interface Asn1BerExceptionHandler
Modifier and Type | Method and Description |
---|---|
java.lang.RuntimeException |
handleException(Asn1Exception e,
Asn1BerDecodeBuffer buffer)
This method is invoked by generated code before throwing certain
exceptions.
|
java.lang.RuntimeException handleException(Asn1Exception e, Asn1BerDecodeBuffer buffer)
Asn1InvalidEnumException
Asn1MissingRequiredException
: No corrective action is required.
Simply return null to ignore the exception.
Asn1InvalidChoiceOptionException
Asn1NotInSetException
Asn1SeqOrderException
Asn1SetDuplicateException
Asn1UnexpectedElementException
:
If returning null, you must consume the current TLV from the input.
e
- The exception the caller wishes to throw, indicating what error
occurred.buffer
- The decode buffer.