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.
Information in the exception objectMember | Accessor method |
---|---|
Message text | getMsg() |
The ODKException class provides some subclasses to indicate specific error conditions, as Table 103 shows.