All Packages Class Hierarchy This Package Previous Next Index
This interface is part of the Java implementation of SAX, the Simple API for XML. It is free for both commercial and non-commercial use, and is distributed with no warrantee, real or implied.
If you do not set an error handler, then a parser will report
warnings to System.err
, and will throw an (unspecified)
exception for fata errors.
public abstract void warning(String message, String systemID, int line, int column) throws Exception
A SAX parser will use this callback to report a condition that is not serious enough to stop the parse (though you may still stop the parse if you wish).
public abstract void fatal(String message, String systemID, int line, int column) throws Exception
A SAX parser will use this callback to report a condition that is serious enough to invalidate the parse, and may not report all (or any) significant parse events after this. Ordinarily, you should stop immediately with an exception, but you can continue to try to collect more errors if you wish.
All Packages Class Hierarchy This Package Previous Next Index