|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--javax.microedition.pim.PIMException
Represents exceptions thrown by the PIM classes. This class has a reason code optionally associated with it to provide more information about the PIM exception that occurred.
For more information about this class or about the personal information management (PIM) API, refer to The PDA Profile specification (JSR-000075) for the J2ME(TM) Platform.
FieldFullException
,
FieldEmptyException
Field Summary | ||
static int |
FEATURE_NOT_SUPPORTED
Represents the constant indicating that the specified feature is not yet supported. |
|
static int |
GENERAL_ERROR
Indicates that a general error has occured. |
|
static int |
LIST_CLOSED
Indicates that the specified list has been closed. |
|
static int |
LIST_NOT_ACCESSIBLE
Indicates that the specified list cannot be accessed. |
|
static int |
MAX_CATEGORIES_EXCEEDED
A constant indicating that the maximum number of categories for this list has been exceeded. |
|
static int |
UNSUPPORTED_VERSION
A constant indicating that an unsupported version has been encountered. |
|
static int |
UPDATE_ERROR
A constant indicating that an error occured while updating PIM information. |
Constructor Summary | ||
PIMException()
Creates a new PIMException instance. |
||
PIMException(String detailMessage)
Creates a new PIMException instance given a detailed
message about the error that caused the exception to be thrown.
|
||
PIMException(String detailMessage,
int reason)
Creates a new PIMException instance given a detailed
message about the error that caused the exception to be thrown and the
field that caused the exception.
|
Method Summary | ||
int |
getReason()
Returns an integer indicating the reason that the exception was thrown. |
Methods inherited from class java.lang.Throwable |
getMessage, printStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int FEATURE_NOT_SUPPORTED
This constant corresponds to the current exception and can be returned
using the getReason
method.
public static final int GENERAL_ERROR
This constant corresponds to the current exception and can be returned
using the getReason
method.
public static final int LIST_CLOSED
When a list is closed it can no longer be accessed.
This constant corresponds to the current exception and can be returned
using the getReason
method.
public static final int LIST_NOT_ACCESSIBLE
This constant corresponds to the current exception and can be returned
using the getReason
method.
public static final int MAX_CATEGORIES_EXCEEDED
This constant corresponds to the current exception and can be returned
using the getReason
method.
public static final int UNSUPPORTED_VERSION
This constant corresponds to the current exception and can be returned
using the getReason
method.
public static final int UPDATE_ERROR
This constant corresponds to the current exception and can be returned
using the getReason
method.
Constructor Detail |
public PIMException(String detailMessage)
PIMException
instance given a detailed
message about the error that caused the exception to be thrown.
detailMessage
- A detailed message explaining what caused the
exception to be thrown.public PIMException(String detailMessage, int reason)
PIMException
instance given a detailed
message about the error that caused the exception to be thrown and the
field that caused the exception.
detailMessage
- A detailed message explaining what caused the
exception to be thrown.field
- An integer representing the field that caused the exception
to be thrown.Method Detail |
public int getReason()
The integer corresponds to a reason.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2004 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.