it.eng.spagobi.commons.utilities
Class SpagoBIServiceExceptionHandler

java.lang.Object
  extended by it.eng.spagobi.commons.utilities.SpagoBIServiceExceptionHandler

public class SpagoBIServiceExceptionHandler
extends java.lang.Object

Author:
Andrea Gioia (andrea.gioia@eng.it)

Method Summary
static SpagoBIServiceExceptionHandler getInstance()
           
 it.eng.spagobi.utilities.exceptions.SpagoBIServiceException getWrappedException(java.lang.String serviceName, java.lang.Throwable e)
           
static void logError(it.eng.spagobi.utilities.exceptions.SpagoBIServiceException serviceError)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SpagoBIServiceExceptionHandler getInstance()

getWrappedException

public it.eng.spagobi.utilities.exceptions.SpagoBIServiceException getWrappedException(java.lang.String serviceName,
                                                                                       java.lang.Throwable e)
Parameters:
serviceName - public void service(request, response) { logger.debug("IN"); try { ... } catch (Throwable t) { throw SpagoBIServiceExceptionHandler.getInstance().getWrappedException(serviceName, t); } finally { // relese resurces if needed } logger.debug("OUT"); }
e -
Returns:

logError

public static void logError(it.eng.spagobi.utilities.exceptions.SpagoBIServiceException serviceError)