public class KExceptionHandler extends Object implements IKExceptionHandler
| Constructor and Description |
|---|
KExceptionHandler(Class<? extends Throwable> exceptionClass,
IKAction action) |
KExceptionHandler(String className,
IKAction action) |
KExceptionHandler(Throwable example,
IKAction action) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquire(Object owner)
Any time the exception handler is about to be executed the container doing the execution
needs to acquire the handler so that the same instance of the action cannot be executed by
multiple threads concurrently.
|
IKAction |
getAction() |
Class<? extends Throwable> |
getExceptionClass() |
void |
release(Object owner)
Called when the executing container is done with the exception handler.
|
public IKAction getAction()
getAction in interface IKExceptionHandlerpublic Class<? extends Throwable> getExceptionClass()
getExceptionClass in interface IKExceptionHandlerpublic void acquire(Object owner)
IKExceptionHandleracquire in interface IKExceptionHandlerpublic void release(Object owner)
IKExceptionHandlerrelease in interface IKExceptionHandler© Copyright IBM Corp. 2013. All rights reserved.