uicc.contactmanager
Class ContactManagerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javacard.framework.CardRuntimeException
                  extended by uicc.contactmanager.ContactManagerException

public class ContactManagerException
extends javacard.framework.CardRuntimeException

ContactManager classes may throw ContactManagerException exceptions.

The associated reason code indicates the condition that led to the exception.


Field Summary
static short ENUMERATION_IN_PROGRESS
          This exception code indicates that the operation can't be done because an enumeration is currently in progress.
static short ITEM_SELECTED
          This exception code indicates that an operation failed because the concerned item is currently selected by a view.
static short OBJECT_NOT_INITIALIZED
          This exception code indicates that an instance of ContactManager is used without initialization.
static short UPDATE_IN_PROGRESS
          This exception code indicates that an operation fails because an update is in progress for the same item.
static short WRONG_FIELD_TYPE
          This exception code indicates that an operation to a field failed because the concerned item is has a type incompatible with the operation.
static short WRONG_IDENTIFIER
          This exception code indicates that the identifier is wrong.
static short WRONG_KEY
          This exception code indicates that an improper field index has been provided.
static short WRONG_STATE
          This exception code indicates that an operation failed because the object was in an inappropriate state.
 
Constructor Summary
ContactManagerException(short reason)
           
 
Method Summary
static void throwIt(short reason)
          Throw an instance of the exception.
 
Methods inherited from class javacard.framework.CardRuntimeException
getReason, setReason
 
Methods inherited from class java.lang.Object
equals
 

Field Detail

OBJECT_NOT_INITIALIZED

public static final short OBJECT_NOT_INITIALIZED
This exception code indicates that an instance of ContactManager is used without initialization.

See Also:
Constant Field Values

WRONG_IDENTIFIER

public static final short WRONG_IDENTIFIER
This exception code indicates that the identifier is wrong.

See Also:
Constant Field Values

WRONG_STATE

public static final short WRONG_STATE
This exception code indicates that an operation failed because the object was in an inappropriate state.

See Also:
Constant Field Values

ENUMERATION_IN_PROGRESS

public static final short ENUMERATION_IN_PROGRESS
This exception code indicates that the operation can't be done because an enumeration is currently in progress.

See Also:
Constant Field Values

WRONG_KEY

public static final short WRONG_KEY
This exception code indicates that an improper field index has been provided.

See Also:
Constant Field Values

UPDATE_IN_PROGRESS

public static final short UPDATE_IN_PROGRESS
This exception code indicates that an operation fails because an update is in progress for the same item.

See Also:
Constant Field Values

ITEM_SELECTED

public static final short ITEM_SELECTED
This exception code indicates that an operation failed because the concerned item is currently selected by a view.

See Also:
Constant Field Values

WRONG_FIELD_TYPE

public static final short WRONG_FIELD_TYPE
This exception code indicates that an operation to a field failed because the concerned item is has a type incompatible with the operation.

See Also:
Constant Field Values
Constructor Detail

ContactManagerException

public ContactManagerException(short reason)
Method Detail

throwIt

public static void throwIt(short reason)
Throw an instance of the exception.
This method allows implementing this exception as a Singleton to avoid run-time allocation of the exception instance.

Parameters:
reason - The reason that justifies the occurrence of the exception.