Use a message handler and managing exceptions
Use this information to help you to use a message handler and mange exceptions.
Tasks
Subtopics
- Use a message handler
The default behavior for prepare-time and execution-time processing errors and other messages is to print the messages to System.err and for nonrecoverable errors to raise an XProcessException as well. If an error occurs at prepare time, the processor attempts to continue preparation and signal all errors before generating an XProcessException; but no executable is produced. At run time, execution stops at the first occurrence of an error situation.- Manage exceptions
Various exceptions might occur. Unless otherwise indicated, all exceptions extend RuntimeException and thus are unchecked.
Use a message handler Manage exceptions