Class TLVException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- java.lang.RuntimeException
- 
- javacard.framework.CardRuntimeException
- 
- javacardx.framework.tlv.TLVException
 
 
 
 
 
- 
 public class TLVException extends CardRuntimeException TLVExceptionrepresents a TLV-related exception.The API classes throw Java Card runtime environment-owned instances of TLVException.Java Card runtime environment-owned instances of exception classes are temporary Java Card runtime environment Entry Point Objects and can be accessed from any applet context. References to these temporary objects cannot be stored in class variables, instance variables, or array components. - Since:
- 2.2.2
 
- 
- 
Field SummaryFields Modifier and Type Field Description static shortEMPTY_TAGThis reason code is used to indicate that the Tag object is emptystatic shortEMPTY_TLVThis reason code is used to indicate that the TLV object is emptystatic shortILLEGAL_SIZEThis reason code is used to indicate that the size of a TLV or Tag representation in the input parameter is greater than the supported size or will result in in a TLV structure of greater than supported sizestatic shortINSUFFICIENT_STORAGEThis reason code is used to indicate that the configured storage capacity of the object will be exceededstatic shortINVALID_PARAMThis reason code is used to indicate that one or more input parameters is invalid.static shortMALFORMED_TAGThis reason code is used to indicate that the tag representation is not a well-formed BER Tagstatic shortMALFORMED_TLVThis reason code is used to indicate that the TLV representation is not a well-formed BER TLVstatic shortTAG_NUMBER_GREATER_THAN_32767This reason code is used to indicate that the tag number value greater than 32767static shortTAG_SIZE_GREATER_THAN_127This reason code is used to indicate that the size of the tag representation is greater than 127 bytesstatic shortTLV_LENGTH_GREATER_THAN_32767This reason code is used to indicate that the Length component value in the TLV is greater than 32767static shortTLV_SIZE_GREATER_THAN_32767This reason code is used to indicate that the TLV requires more that 32767 bytes to represent
 - 
Constructor SummaryConstructors Constructor Description TLVException(short reason)Constructs aTLVExceptionwith the specified reason.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidthrowIt(short reason)Throws the Java Card runtime environment-owned instance ofTLVExceptionwith the specified reason.- 
Methods inherited from class javacard.framework.CardRuntimeExceptiongetReason, setReason
 
- 
 
- 
- 
- 
Field Detail- 
INVALID_PARAMpublic static final short INVALID_PARAM This reason code is used to indicate that one or more input parameters is invalid.- See Also:
- Constant Field Values
 
 - 
ILLEGAL_SIZEpublic static final short ILLEGAL_SIZE This reason code is used to indicate that the size of a TLV or Tag representation in the input parameter is greater than the supported size or will result in in a TLV structure of greater than supported size- See Also:
- Constant Field Values
 
 - 
EMPTY_TAGpublic static final short EMPTY_TAG This reason code is used to indicate that the Tag object is empty- See Also:
- Constant Field Values
 
 - 
EMPTY_TLVpublic static final short EMPTY_TLV This reason code is used to indicate that the TLV object is empty- See Also:
- Constant Field Values
 
 - 
MALFORMED_TAGpublic static final short MALFORMED_TAG This reason code is used to indicate that the tag representation is not a well-formed BER Tag- See Also:
- Constant Field Values
 
 - 
MALFORMED_TLVpublic static final short MALFORMED_TLV This reason code is used to indicate that the TLV representation is not a well-formed BER TLV- See Also:
- Constant Field Values
 
 - 
INSUFFICIENT_STORAGEpublic static final short INSUFFICIENT_STORAGE This reason code is used to indicate that the configured storage capacity of the object will be exceeded- See Also:
- Constant Field Values
 
 - 
TAG_SIZE_GREATER_THAN_127public static final short TAG_SIZE_GREATER_THAN_127 This reason code is used to indicate that the size of the tag representation is greater than 127 bytes- See Also:
- Constant Field Values
 
 - 
TAG_NUMBER_GREATER_THAN_32767public static final short TAG_NUMBER_GREATER_THAN_32767 This reason code is used to indicate that the tag number value greater than 32767- See Also:
- Constant Field Values
 
 - 
TLV_SIZE_GREATER_THAN_32767public static final short TLV_SIZE_GREATER_THAN_32767 This reason code is used to indicate that the TLV requires more that 32767 bytes to represent- See Also:
- Constant Field Values
 
 - 
TLV_LENGTH_GREATER_THAN_32767public static final short TLV_LENGTH_GREATER_THAN_32767 This reason code is used to indicate that the Length component value in the TLV is greater than 32767- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
throwItpublic static void throwIt(short reason) Throws the Java Card runtime environment-owned instance ofTLVExceptionwith the specified reason.Java Card runtime environment-owned instances of exception classes are temporary Java Card runtime environment Entry Point Objects and can be accessed from any applet context. References to these temporary objects cannot be stored in class variables or instance variables or array components. See Runtime Environment Specification, Java Card Platform, Classic Edition, section 6.2.1 for details. - Parameters:
- reason- the reason for the exception
- Throws:
- TLVException- always
 
 
- 
 
-