Package com.e1c.g5.dt.applications
Class ApplicationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.e1c.g5.dt.applications.ApplicationException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionApplicationException
(String message) Creates a new instance ofApplicationException
.ApplicationException
(String message, Throwable cause) Creates a new instance ofApplicationException
.ApplicationException
(Throwable cause) Creates a new instance ofApplicationException
.ApplicationException
(org.eclipse.core.runtime.IStatus status) Creates new instance using the specified status. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.core.runtime.IStatus
Gets status associated with error.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ApplicationException
Creates a new instance ofApplicationException
.- Parameters:
message
- the detail message, cannot benull
-
ApplicationException
Creates a new instance ofApplicationException
.- Parameters:
cause
- the cause, cannot benull
-
ApplicationException
Creates a new instance ofApplicationException
.- Parameters:
message
- the detail message, cannot benull
cause
- the cause ornull
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 benull
.
-
-
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
.
-