The methods of the ODK API can throw exceptions to indicate
certain predefined conditions. This section provides the following
information about how to handle exceptions in a Java connector:
You can also use error logging and message logging to handle
error conditions and messages in your connector. For more
information, see Handling
trace and error messages.