org.omnaest.utils.events.exception.basic
Class ExceptionHandlerRethrowingAsRuntimeException

java.lang.Object
  extended by org.omnaest.utils.events.exception.basic.ExceptionHandlerRethrowingAsRuntimeException
All Implemented Interfaces:
Serializable, ExceptionHandler, ExceptionHandlerSerializable

public class ExceptionHandlerRethrowingAsRuntimeException
extends Object
implements ExceptionHandlerSerializable

Simple ExceptionHandler which does rethrow the given Exception as cause of a new RuntimeException

Author:
Omnaest
See Also:
Serialized Form

Constructor Summary
ExceptionHandlerRethrowingAsRuntimeException()
           
 
Method Summary
 void handleException(Exception e)
          Handles the given Exception
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionHandlerRethrowingAsRuntimeException

public ExceptionHandlerRethrowingAsRuntimeException()
Method Detail

handleException

public void handleException(Exception e)
Description copied from interface: ExceptionHandler
Handles the given Exception

Specified by:
handleException in interface ExceptionHandler
Parameters:
e - Exception


Copyright © 2013. All Rights Reserved.