CANCEL_STATUS, OK_STATUS| Constructor and Description |
|---|
MultiStatus(java.lang.Class<?> caller,
int code,
IStatus[] newChildren,
java.lang.String message,
java.lang.Throwable exception)
Creates and returns a new multi-status object with the given children.
|
MultiStatus(java.lang.Class<?> caller,
int code,
java.lang.String message)
Creates and returns a new multi-status object with no children.
|
MultiStatus(java.lang.Class<?> caller,
int code,
java.lang.String message,
java.lang.Throwable exception)
Creates and returns a new multi-status object with no children.
|
MultiStatus(java.lang.String pluginId,
int code,
IStatus[] newChildren,
java.lang.String message,
java.lang.Throwable exception)
Creates and returns a new multi-status object with the given children.
|
MultiStatus(java.lang.String pluginId,
int code,
java.lang.String message)
Creates and returns a new multi-status object with no children.
|
MultiStatus(java.lang.String pluginId,
int code,
java.lang.String message,
java.lang.Throwable exception)
Creates and returns a new multi-status object with no children.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(IStatus status)
Adds the given status to this multi-status.
|
void |
addAll(IStatus status)
Adds all of the children of the given status to this multi-status.
|
IStatus[] |
getChildren()
Returns a list of status object immediately contained in this
multi-status, or an empty list if this is not a multi-status.
|
boolean |
isMultiStatus()
Returns whether this status is a multi-status.
|
void |
merge(IStatus status)
Merges the given status into this multi-status.
|
java.lang.String |
toString()
Returns a string representation of the status, suitable
for debugging purposes only.
|
error, error, getCode, getException, getMessage, getPlugin, getSeverity, info, isOK, matches, setCode, setException, setMessage, setPlugin, setSeverity, warning, warningpublic MultiStatus(java.lang.Class<?> caller,
int code,
IStatus[] newChildren,
java.lang.String message,
java.lang.Throwable exception)
caller - the relevant class to build unique identifier fromcode - the caller-specific status codenewChildren - the list of children status objectsmessage - a human-readable message, localized to the
current localeexception - a low-level exception, or null if not
applicablepublic MultiStatus(java.lang.String pluginId,
int code,
IStatus[] newChildren,
java.lang.String message,
java.lang.Throwable exception)
pluginId - the unique identifier of the relevant plug-incode - the plug-in-specific status codenewChildren - the list of children status objectsmessage - a human-readable message, localized to the
current localeexception - a low-level exception, or null if not
applicablepublic MultiStatus(java.lang.Class<?> caller,
int code,
java.lang.String message,
java.lang.Throwable exception)
caller - the relevant class to build unique identifier fromcode - the caller-specific status codemessage - a human-readable message, localized to the
current localeexception - a low-level exception, or null if not
applicablepublic MultiStatus(java.lang.String pluginId,
int code,
java.lang.String message,
java.lang.Throwable exception)
pluginId - the unique identifier of the relevant plug-incode - the plug-in-specific status codemessage - a human-readable message, localized to the
current localeexception - a low-level exception, or null if not
applicablepublic MultiStatus(java.lang.Class<?> caller,
int code,
java.lang.String message)
caller - the relevant class to build unique identifier fromcode - the caller-specific status codemessage - a human-readable message, localized to the current localepublic MultiStatus(java.lang.String pluginId,
int code,
java.lang.String message)
pluginId - the unique identifier of the relevant plug-incode - the plug-in-specific status codemessage - a human-readable message, localized to the current localepublic void add(IStatus status)
status - the new child statuspublic void addAll(IStatus status)
status - the status whose children are to be added to this onepublic IStatus[] getChildren()
IStatusgetChildren in interface IStatusgetChildren in class StatusIStatus.isMultiStatus()public boolean isMultiStatus()
IStatus
The severity of a multi-status is derived from the severities
of its children; a multi-status with no children is
OK by definition.
A multi-status carries a plug-in identifier, a status code,
a message, and an optional exception. Clients may treat
multi-status objects in a multi-status unaware way.
isMultiStatus in interface IStatusisMultiStatus in class Statustrue for a multi-status,
false otherwiseIStatus.getChildren()public void merge(IStatus status)
add(status) if the
given status is not a multi-status.
Equivalent to addAll(status) if the
given status is a multi-status.status - the status to merge into this oneadd(IStatus),
addAll(IStatus)