public class SerializableStatus
extends java.lang.Object
implements org.eclipse.core.runtime.IStatus, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static org.eclipse.core.runtime.IStatus |
CANCEL_STATUS |
static org.eclipse.core.runtime.IStatus |
OK_STATUS |
Constructor and Description |
---|
SerializableStatus(int severity,
java.lang.String pluginId,
int code,
java.lang.String message,
java.lang.Throwable exception) |
SerializableStatus(int severity,
java.lang.String pluginId,
java.lang.String message) |
SerializableStatus(int severity,
java.lang.String pluginId,
java.lang.String message,
java.lang.Throwable exception) |
SerializableStatus(org.eclipse.core.runtime.IStatus status) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.core.runtime.IStatus[] |
getChildren() |
int |
getCode() |
java.lang.Throwable |
getException() |
java.lang.String |
getMessage() |
java.lang.String |
getPlugin() |
int |
getSeverity() |
boolean |
isMultiStatus() |
boolean |
isOK() |
boolean |
matches(int severityMask) |
protected void |
setCode(int code)
Sets the status code.
|
protected void |
setException(java.lang.Throwable exception)
Sets the exception.
|
protected void |
setMessage(java.lang.String message)
Sets the message.
|
protected void |
setPlugin(java.lang.String pluginId)
Sets the plug-in id.
|
protected void |
setSeverity(int severity)
Sets the severity.
|
java.lang.String |
toString()
Returns a string representation of the status, suitable for debugging
purposes only.
|
public static final org.eclipse.core.runtime.IStatus OK_STATUS
public static final org.eclipse.core.runtime.IStatus CANCEL_STATUS
public SerializableStatus(org.eclipse.core.runtime.IStatus status)
public SerializableStatus(int severity, java.lang.String pluginId, int code, java.lang.String message, java.lang.Throwable exception)
public SerializableStatus(int severity, java.lang.String pluginId, java.lang.String message, java.lang.Throwable exception)
public SerializableStatus(int severity, java.lang.String pluginId, java.lang.String message)
public org.eclipse.core.runtime.IStatus[] getChildren()
getChildren
in interface org.eclipse.core.runtime.IStatus
public int getCode()
getCode
in interface org.eclipse.core.runtime.IStatus
public java.lang.Throwable getException()
getException
in interface org.eclipse.core.runtime.IStatus
public java.lang.String getMessage()
getMessage
in interface org.eclipse.core.runtime.IStatus
public java.lang.String getPlugin()
getPlugin
in interface org.eclipse.core.runtime.IStatus
public int getSeverity()
getSeverity
in interface org.eclipse.core.runtime.IStatus
public boolean isMultiStatus()
isMultiStatus
in interface org.eclipse.core.runtime.IStatus
public boolean isOK()
isOK
in interface org.eclipse.core.runtime.IStatus
public boolean matches(int severityMask)
matches
in interface org.eclipse.core.runtime.IStatus
protected void setCode(int code)
code
- the plug-in-specific status code, or OK
protected void setException(java.lang.Throwable exception)
exception
- a low-level exception, or null
if not applicableprotected void setMessage(java.lang.String message)
message
- a human-readable message, localized to the current localeprotected void setPlugin(java.lang.String pluginId)
pluginId
- the unique identifier of the relevant plug-inprotected void setSeverity(int severity)
severity
- the severity; one of OK
, ERROR
,
INFO
, WARNING
, or
CANCEL
public java.lang.String toString()
toString
in class java.lang.Object