Package com.oss.asn1
Class DecodeFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.oss.asn1.AbstractException
com.oss.asn1.VisitorException
com.oss.asn1.DecodeFailedException
- All Implemented Interfaces:
Serializable
DecodeFailedException is thrown by decode() method of Coder.
- Since:
- ASN.1/Java 6.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDecodeFailedException
(VisitorException exception) Constructs theDecodeFailedException
from some otherVisitorException
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
It facilitates explicit cleanup of partially decoded data, especially in the case when the decoded value has nested components with the ValueInFile directive applied.This method will return partially decoded PDU aggregated in the exception object to the user.Methods inherited from class com.oss.asn1.VisitorException
appendElementContext, appendExtensionContext, appendFieldContext
Methods inherited from class com.oss.asn1.AbstractException
fillInBackTrace, getBackTrace, getMessage, getReason, printStackTrace, printStackTrace, printStackTrace
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
-
Constructor Details
-
DecodeFailedException
Constructs theDecodeFailedException
from some otherVisitorException
- Parameters:
exception
- someVisitorException
-
-
Method Details
-
getDecodedData
This method will return partially decoded PDU aggregated in the exception object to the user.- Returns:
- the partially decoded data.
-
cleanup
public void cleanup()It facilitates explicit cleanup of partially decoded data, especially in the case when the decoded value has nested components with the ValueInFile directive applied. The method will explicitly destroy Storage objects allocated by the decoder that are referenced by VIF fields of the partially decoded PDU.
-