Class ApplicationException

All Implemented Interfaces:
Serializable

public class ApplicationException extends RuntimeException
The application API core error.

Signals common application API error. When this exception is caused by user cancelling an operation then this can be signalled via ApplicationException(IStatus) with IStatus.getSeverity() set to IStatus.CANCEL and then checked via getStatus().

See Also:
  • Constructor Details

    • ApplicationException

      public ApplicationException(String message)
      Creates a new instance of ApplicationException.
      Parameters:
      message - the detail message, cannot be null
    • ApplicationException

      public ApplicationException(Throwable cause)
      Creates a new instance of ApplicationException.
      Parameters:
      cause - the cause, cannot be null
    • ApplicationException

      public ApplicationException(String message, Throwable cause)
      Creates a new instance of ApplicationException.
      Parameters:
      message - the detail message, cannot be null
      cause - the cause or null if not applicable.
    • ApplicationException

      public ApplicationException(org.eclipse.core.runtime.IStatus status)
      Creates new instance using the specified status.
      Parameters:
      status - Status to get message and cause from. Must not be null.
  • Method Details

    • getStatus

      public org.eclipse.core.runtime.IStatus getStatus()
      Gets status associated with error.
      Returns:
      Either status passed during instantiation or an error status with message/cause specified during instantiation. Never null.