FileDocCategorySizeDatePackage
SystemException.javaAPI DocphoneME MR2 API (J2ME)3446Wed May 02 18:00:40 BST 2007javacard.framework

SystemException

public class SystemException extends CardRuntimeException
SystemException represents a JCSystem class-related exception.

Fields Summary
public static final short
ILLEGAL_VALUE
This reason code is used to indicate that one or more input parameters is out of allowed bounds.
public static final short
NO_TRANSIENT_SPACE
This reason code is used by the makeTransient*() methods to indicate that no room is available in volatile memory for the requested object.
public static final short
ILLEGAL_TRANSIENT
This reason code is used to indicate that the request to create a transient object is not allowed in the current applet context. See Java Card Runtime Environment (JCRE) Specification, section 6.2.1 for details.
public static final short
ILLEGAL_AID
This reason code is used by the javacard.framework.Applet.register() method to indicate that the input AID parameter is not a legal AID value.
public static final short
NO_RESOURCE
This reason code is used to indicate that there is insufficient resource in the Card for the request.

For example, the Java Card Virtual Machine may throw this exception reason when there is insufficient heap space to create a new instance.

public static final short
ILLEGAL_USE
This reason code is used to indicate that the requested function is not allowed. For example, JCSystem.requestObjectDeletion() method throws this exception if the object deletion mechanism is not implemented.
Constructors Summary
public SystemException(short reason)
Constructs a SystemException.

param
reason the reason for the exception

    
                   
    
       
	super(reason);
    
Methods Summary
public static voidthrowIt(short reason)
Throws an instance of SystemException with the specified reason.

param
reason the reason for the exception.
exception
SystemException always

	throw new SystemException(reason);