cookxml.core.interfaces
Interface ExceptionHandler

All Known Implementing Classes:
AssertExceptionHandler, DebugExceptionHandler, StrictExceptionHandler

public interface ExceptionHandler

This is the interface for handlers that deal with exceptions generated while CookXml is decoding XML.

Since:
CookXml 2.0
Version:
$Id: ExceptionHandler.java 218 2007-06-06 06:10:10Z coconut $

Method Summary
 void handleException(String msg, Exception ex)
          This function handles the exception.
 

Method Detail

handleException

void handleException(String msg,
                     Exception ex)
                     throws CookXmlException
This function handles the exception. To generate an error that halts the parsing process of the DecodeEngine, throw a CookXmlException. To tolerate the exception, just do not do anything.

Parameters:
msg - The message that goes along with the exception.
ex - The exception to be handled.
Throws:
CookXmlException - The only type of exception this handler should throw.