org.mmbase.applications.dove.servlet
Class DoveServlet.DoveErrorHandler
java.lang.Object
|
+--org.mmbase.applications.dove.servlet.DoveServlet.DoveErrorHandler
- All Implemented Interfaces:
- org.xml.sax.ErrorHandler
- Enclosing class:
- DoveServlet
- public class DoveServlet.DoveErrorHandler
- extends java.lang.Object
- implements org.xml.sax.ErrorHandler
Dove Error handler for catching and storing parsing exceptions.
The Error handler catches all exceptions and stores their descriptions.
These can then be retrieved by the Dove servlet, so it can generate an
error response.
|
Field Summary |
boolean |
erroroccurred
Indicates whether any errors occurred. |
java.lang.String |
parsingerrors
The errors that occurred during the parse. |
|
Method Summary |
void |
error(org.xml.sax.SAXParseException ex)
Logs an error and adds it to the list of parsing errors. |
void |
fatalError(org.xml.sax.SAXParseException ex)
Logs a fatal error. |
void |
warning(org.xml.sax.SAXParseException ex)
Logs a warning. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parsingerrors
public java.lang.String parsingerrors
- The errors that occurred during the parse.
erroroccurred
public boolean erroroccurred
- Indicates whether any errors occurred.
DoveServlet.DoveErrorHandler
public DoveServlet.DoveErrorHandler()
error
public void error(org.xml.sax.SAXParseException ex)
- Logs an error and adds it to the list of parsing errors.
- Specified by:
error in interface org.xml.sax.ErrorHandler
- Parameters:
ex - the parsing exception describing the error
warning
public void warning(org.xml.sax.SAXParseException ex)
- Logs a warning.
Warnings are not added to the list of parsing errors.
- Specified by:
warning in interface org.xml.sax.ErrorHandler
- Parameters:
ex - the parsing exception describig the error
fatalError
public void fatalError(org.xml.sax.SAXParseException ex)
throws org.xml.sax.SAXException
- Logs a fatal error.
Fatal errors are not added to the list of parsing errors, they
throw an exception and abort parsing.
- Specified by:
fatalError in interface org.xml.sax.ErrorHandler
- Parameters:
ex - the parsing exception describing the error
MMBase 2002