cookxml.core.exceptionhandler
Class DebugExceptionHandler

java.lang.Object
  extended bycookxml.core.exceptionhandler.DebugExceptionHandler
All Implemented Interfaces:
ExceptionHandler

public class DebugExceptionHandler
extends Object
implements ExceptionHandler

This exception handler output the message and exception if assertion is enabled. Otherwise, it just silently ignore them.

Since:
CookXml 2.0

Method Summary
static ExceptionHandler getInstance()
           
 void handleException(String msg, Exception ex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ExceptionHandler getInstance()

handleException

public void handleException(String msg,
                            Exception ex)
                     throws CookXmlException
Specified by:
handleException in interface ExceptionHandler
Throws:
CookXmlException