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 IKExceptionHandler
public Class<? extends Throwable> getExceptionClass()
getExceptionClass
in interface IKExceptionHandler
public void acquire(Object owner)
IKExceptionHandler
acquire
in interface IKExceptionHandler
public void release(Object owner)
IKExceptionHandler
release
in interface IKExceptionHandler
© Copyright IBM Corp. 2013. All rights reserved.