Users can botch program input in more ways than you could ever
imagine. To detect an error, check
after parsing the command line. It will return false if there were any
Once you detect a problem, you have a number of options:
Display program usage (see
Display help information (see
Display messages specific to the user's errors (see
Obtain a list of parameter IDs for the problematic items through
obtain the individual exceptions for each ID through
and related methods. After that, you're on your own.
Any combination of the above.
If you have used
SimpleJSAP error handling is
largely simplified, as it will be handled automatically. Remember just to
messagePrinted() after parsing and take