TUM CCSM Commons

edu.tum.cs.commons.error
Class RethrowingExceptionHandler<X extends java.lang.Exception>

java.lang.Object
  extended by edu.tum.cs.commons.error.RethrowingExceptionHandler<X>
All Implemented Interfaces:
IExceptionHandler<X,X>

public class RethrowingExceptionHandler<X extends java.lang.Exception>
extends java.lang.Object
implements IExceptionHandler<X,X>

An exception handler simply rethrowing the exception caught.

Version:
$Rev: 26283 $
Author:
hummelb, $Author: juergens $
Rating:
GREEN Hash: 2ACD776D944D5964CC083EF8762615B6

Constructor Summary
RethrowingExceptionHandler()
           
 
Method Summary
static
<X extends java.lang.Exception>
RethrowingExceptionHandler<X>
getInstance()
          Returns the singleton instance of this class.
 void handleException(X exception)
          Handle the provided exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RethrowingExceptionHandler

public RethrowingExceptionHandler()
Method Detail

getInstance

public static <X extends java.lang.Exception> RethrowingExceptionHandler<X> getInstance()
Returns the singleton instance of this class.


handleException

public void handleException(X exception)
                     throws X extends java.lang.Exception
Handle the provided exception.

Specified by:
handleException in interface IExceptionHandler<X extends java.lang.Exception,X extends java.lang.Exception>
Parameters:
exception - the exception being handled.
Throws:
X extends java.lang.Exception

TUM CCSM Commons

TUM CCSM Commons - 2.7