PIM Optional Package 1.0
Final Release

javax.microedition.pim
Class FieldEmptyException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--javax.microedition.pim.FieldEmptyException

public class FieldEmptyException
extends java.lang.RuntimeException

Represents an exception thrown when an attempt is made to access a field that does not have any data values associated with it.

Since:
PIM 1.0

Constructor Summary
FieldEmptyException()
          Constructs a new instance of this class with its stack trace filled in.
FieldEmptyException(java.lang.String detailMessage)
          Constructs a new instance of this class with its stack trace and message filled in.
FieldEmptyException(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
 

Constructor Detail

FieldEmptyException

public FieldEmptyException()
Constructs a new instance of this class with its stack trace filled in. A default value of -1 is assigned to the Field.


FieldEmptyException

public FieldEmptyException(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.

FieldEmptyException

public FieldEmptyException(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.
Method Detail

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.

Final Release
Rev. 1.00

Copyright � 2002-2004 PalmSource, Inc. All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.