3.10 SAXParseException

The SAXParseException interface encapsulates an XML parse error or warning.

The methods include information for locating the error in the original XML document. Although the application will receive a SAXParseException as the argument to the handlers in the ErrorHandler interface, the application is not actually required to throw the exception; instead, it can simply read the information in it and take a different action.