org.mmbase.applications.dove.servlet
Class DoveServlet.DoveErrorHandler

java.lang.Object
  extended byorg.mmbase.applications.dove.servlet.DoveServlet.DoveErrorHandler
All Implemented Interfaces:
ErrorHandler
Enclosing class:
DoveServlet

public class DoveServlet.DoveErrorHandler
extends Object
implements 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.
 String parsingerrors
          The errors that occurred during the parse.
 
Constructor Summary
DoveServlet.DoveErrorHandler()
           
 
Method Summary
 void error(SAXParseException ex)
          Logs an error and adds it to the list of parsing errors.
 void fatalError(SAXParseException ex)
          Logs a fatal error.
 void warning(SAXParseException ex)
          Logs a warning.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parsingerrors

public String parsingerrors
The errors that occurred during the parse.


erroroccurred

public boolean erroroccurred
Indicates whether any errors occurred.

Constructor Detail

DoveServlet.DoveErrorHandler

public DoveServlet.DoveErrorHandler()
Method Detail

error

public void error(SAXParseException ex)
Logs an error and adds it to the list of parsing errors.

Specified by:
error in interface ErrorHandler
Parameters:
ex - the parsing exception describing the error

warning

public void warning(SAXParseException ex)
Logs a warning. Warnings are not added to the list of parsing errors.

Specified by:
warning in interface ErrorHandler
Parameters:
ex - the parsing exception describig the error

fatalError

public void fatalError(SAXParseException ex)
                throws 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 ErrorHandler
Parameters:
ex - the parsing exception describing the error
Throws:
SAXException


MMBase build 1.8.1.20060716