What is an ODK exception?

When a method of the ODK API throws an exception, this exception object is of the ODKException class or one of its subclasses, which is an extension of the Java Exception class. To create an ODK exception, use the ODKException() constructor. Table 62 shows the accessor methods that the ODKException class provides to obtain information in the exception object.

Table 62.

Information in the exception object
Member Accessor method
Message text getMsg()
Note:
For more information on the methods in the ODKException class, see ODKException class.

The ODKException class provides some subclasses to indicate specific error conditions, as Table 103 shows.

Copyright IBM Corp. 1997, 2004