TUM CCSM Commons

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

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

public class RethrowingExceptionHandler<X extends Exception>
extends 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 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 Exception> RethrowingExceptionHandler<X> getInstance()
Returns the singleton instance of this class.


handleException

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

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

TUM CCSM Commons

TUM CCSM Commons - 2.7