org.omnaest.utils.events.exception
Class ExceptionHandlerManager
java.lang.Object
org.omnaest.utils.events.exception.ExceptionHandlerManager
public class ExceptionHandlerManager
- extends Object
An ExceptionHandlerManager will manage instances of ExceptionHandlerManager.DispatchingExceptionHandlers
- Author:
- Omnaest
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dispatchingExceptionHandler
protected final ExceptionHandler dispatchingExceptionHandler
dispatchingExceptionHandlerRethrowingExceptions
protected final ExceptionHandler dispatchingExceptionHandlerRethrowingExceptions
exceptionHandlerSet
protected final Set<ExceptionHandler> exceptionHandlerSet
exceptionHandlerRegistration
protected final ExceptionHandlerManager.ExceptionHandlerRegistration exceptionHandlerRegistration
ExceptionHandlerManager
public ExceptionHandlerManager()
getExceptionHandlerRegistration
public ExceptionHandlerManager.ExceptionHandlerRegistration getExceptionHandlerRegistration()
- Returns:
- the exceptionHandlerRegistration
getExceptionHandler
public ExceptionHandler getExceptionHandler()
- Returns:
- the exceptionHandler
clearExceptionHandlers
public ExceptionHandlerManager clearExceptionHandlers()
- Unregisters all registered
ExceptionHandlerManager.DispatchingExceptionHandlers
- Returns:
- this
executeOperationAndHandleAnyException
public <R,P> ExceptionHandlerManager executeOperationAndHandleAnyException(OperationIntrinsic operationIntrinsic)
- Invokes
OperationIntrinsic.execute() with the given parameter and handles any occurring Exception
- Parameters:
operationIntrinsic -
- Returns:
- this
executeOperationAndHandleAnyException
public <R,P> R executeOperationAndHandleAnyException(Operation<R,P> operation,
P parameter)
- Invokes
Operation.execute(Object) with the given parameter and handles any occurring Exception
- Parameters:
operation - parameter -
- Returns:
setRethrowingExceptionsFromExceptionHandler
public ExceptionHandlerManager setRethrowingExceptionsFromExceptionHandler(boolean isRethrowingExceptionsFromExceptionHandler)
- Parameters:
isRethrowingExceptionsFromExceptionHandler - the isRethrowingExceptionsFromExceptionHandler to set
- Returns:
- this
Copyright © 2013. All Rights Reserved.