public class DocErrorHandler extends java.lang.Object implements ErrorHandler
Constructor and Description |
---|
DocErrorHandler()
Default Constructor for the ErrorHandler
|
Modifier and Type | Method and Description |
---|---|
void |
error(SAXParseException ex)
Adds a Error message to the vector
|
void |
fatalError(SAXParseException ex)
Adds a fatalError message to the vector
|
java.util.Vector |
getErrorList()
Gets the List of Error messages returned by the Validator.
|
int |
getNumErrors()
Gets the List of Error messages returned by the Validator.
|
void |
warning(SAXParseException ex)
Adds a warning message to the vector
|
public DocErrorHandler() throws java.io.IOException, java.io.FileNotFoundException
java.io.IOException
java.io.FileNotFoundException
public void warning(SAXParseException ex) throws SAXException
warning
in interface ErrorHandler
-
- SAXParseException ex-
- SAXExceptionSAXException
- Any SAX exception, possibly wrapping another exception.SAXParseException
public void error(SAXParseException ex) throws SAXException
error
in interface ErrorHandler
-
- SAXParseException ex-
- SAXExceptionSAXException
- Any SAX exception, possibly wrapping another exception.SAXParseException
public void fatalError(SAXParseException ex) throws SAXException
fatalError
in interface ErrorHandler
-
- SAXParseException ex-
- SAXExceptionSAXException
- Any SAX exception, possibly wrapping another exception.SAXParseException
public java.util.Vector getErrorList()
public int getNumErrors()