public interface IExceptionhandler
When an unexpected exception occurs there might be different ways to handle
it. Sometimes it's not a simple task to decide how an it might be useful to
inform the user and ask for his oder her decision. An IExecptionHandler is
called when such an Exception occurs and the caller has more than one option
to handle this exception. This interface provides a hint how to handle an
exception. All possible actions are listed in class ExceptionAction.
| Modifier and Type | Method and Description |
|---|---|
ExceptionAction |
handleException(java.lang.Throwable pException,
java.lang.String pMessage,
ExceptionAction[] pActions)
Handles an exception (usually by opening an error dialog).
|
ExceptionAction handleException(java.lang.Throwable pException, java.lang.String pMessage, ExceptionAction[] pActions)
pException - the exception that needs to be handledpMessage - a user-readable messagepActions - an array of possible ExceptionActions the caller is
able to execute. If an empty array is given,
ExceptionAction.CANCEL will be usedCopyright © 2015 Micro Focus GmbH. All rights reserved.