Class PearException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.uima.pear.PearException
All Implemented Interfaces:
Serializable

public class PearException extends Exception
This is the generic exception used to handle exceptions related to PEAR.
See Also:
  • Field Details

  • Constructor Details

    • PearException

      public PearException()
      Instantiates a new pear exception.
    • PearException

      public PearException(String message)
      Instantiates a new pear exception.
      Parameters:
      message - the message
    • PearException

      public PearException(Throwable cause)
      Instantiates a new pear exception.
      Parameters:
      cause - the cause
    • PearException

      public PearException(String message, Throwable cause)
      Instantiates a new pear exception.
      Parameters:
      message - the message
      cause - the cause
  • Method Details

    • openErrorDialog

      public void openErrorDialog(org.eclipse.swt.widgets.Shell shell)
      opens an ErrorDialog with details about this exception.
      Parameters:
      shell - the shell
    • openErrorDialog

      public static void openErrorDialog(Throwable e, org.eclipse.swt.widgets.Shell shell)
      opens an ErrorDialog with details about a given exception.
      Parameters:
      e - An exception
      shell - A shell