javax.microedition.pim
Class UnsupportedFieldException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--javax.microedition.pim.UnsupportedFieldException
- public class UnsupportedFieldException
- extends java.lang.RuntimeException
Represents an exception thrown when a field is referenced that is not supported
in the particular PIM list that an element belongs to.
- Since:
-
PIM 1.0
Constructor Summary |
UnsupportedFieldException()
Constructs a new
instance of this class with its stack trace filled in. |
UnsupportedFieldException(java.lang.String detailMessage)
Constructs a new
instance of this class with its stack trace and message filled in. |
UnsupportedFieldException(java.lang.String detailMessage,
int field)
Constructs a new
instance of this class with its stack trace, message, and offending field
filled in. |
Method Summary |
int |
getField()
Method to access
the field for which this exception is 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 |
UnsupportedFieldException
public UnsupportedFieldException()
-
Constructs a new instance of this class with its stack trace filled in. A
default value of -1 is assigned to the Field.
UnsupportedFieldException
public UnsupportedFieldException(java.lang.String detailMessage)
-
Constructs a new instance of this class with its stack trace and message filled
in. A default value of -1 is assigned to the Field.
- Parameters:
detailMessage
- String The detail message for
the exception.
UnsupportedFieldException
public UnsupportedFieldException(java.lang.String detailMessage,
int field)
-
Constructs a new instance of this class with its stack trace, message, and
offending field filled in.
- Parameters:
detailMessage
- String The detail message for
the exception.field
- int the offending field for the exception.
getField
public int getField()
-
Method to access the field for which this exception is thrown. -1 indicates no
field value has been assigned to this exception.
-
- Returns:
- int representing the offending field.
Copyright � 2002-2004 PalmSource, Inc. All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.