com.microfocus.zos.model

## Interface IExceptionhandler

-     public interface IExceptionhandler

  Interface to an exception handler.

  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`.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    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).

- - ### Method Detail

    - #### handleException

          ExceptionAction handleException(java.lang.Throwable pException,
                                          java.lang.String pMessage,
                                          ExceptionAction[] pActions)

      Handles an exception (usually by opening an error dialog).
      Parameters:
        `pException` - the exception that needs to be handled
        `pMessage` - a user-readable message
        `pActions` - an array of possible `ExceptionAction`s the caller is able to execute. If an empty array is given, `ExceptionAction.CANCEL` will be used
      Returns:
        the action that should be taken by the caller

Copyright © 2015 Micro Focus GmbH. All rights reserved.