org.xquark.xml.xdbc
Interface XMLErrorHandler


public interface XMLErrorHandler

Interface for XMLDBC storage error handlers.

If an XMLDBC application needs to implement customized error handling, it must implement this interface and then register an instance with the XMLDocumentFiler using the setErrorHandler method. The document filer will then report all errors and warnings through this interface.

Fatal errors, i.e., errors making storage impossible are not reported through this interface but carry out exceptions.

See Also:
XMLDocumentFiler.setErrorHandler(org.xquark.xml.xdbc.XMLErrorHandler), XMLDBCException

Method Summary
 void error(XMLDBCException exception)
          Receive notification of an error that did not prevent the document storage.
 void warning(XMLDBCException exception)
          Receive notification of a warning.
 

Method Detail

warning

public void warning(XMLDBCException exception)
             throws XMLDBCException
Receive notification of a warning. For instance the risk of data loss

Parameters:
exception - The warning information encapsulated in an XMLDBC exception.
Throws:
XMLDBCException - Any XMLDBC exception, possibly wrapping another exception.
See Also:
XMLDBCException

error

public void error(XMLDBCException exception)
           throws XMLDBCException
Receive notification of an error that did not prevent the document storage.

Parameters:
exception - The error information encapsulated in an XMLDBC exception.
Throws:
XMLDBCException - Any XMLDBC exception, possibly wrapping another exception.
See Also:
XMLDBCException


Copyright © 2004 Université de Versailles Saint-Quentin, XQuark Group. All rights reserved.