public class SerializableStatus extends Object implements org.eclipse.core.runtime.IStatus, 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,
String pluginId,
int code,
String message,
Throwable exception) |
SerializableStatus(int severity,
String pluginId,
String message) |
SerializableStatus(int severity,
String pluginId,
String message,
Throwable exception) |
SerializableStatus(org.eclipse.core.runtime.IStatus status) |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.core.runtime.IStatus[] |
getChildren() |
int |
getCode() |
Throwable |
getException() |
String |
getMessage() |
String |
getPlugin() |
int |
getSeverity() |
boolean |
isMultiStatus() |
boolean |
isOK() |
boolean |
matches(int severityMask) |
protected void |
setCode(int code)
Sets the status code.
|
protected void |
setException(Throwable exception)
Sets the exception.
|
protected void |
setMessage(String message)
Sets the message.
|
protected void |
setPlugin(String pluginId)
Sets the plug-in id.
|
protected void |
setSeverity(int severity)
Sets the severity.
|
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,
String pluginId,
int code,
String message,
Throwable exception)
public SerializableStatus(int severity,
String pluginId,
String message,
Throwable exception)
public org.eclipse.core.runtime.IStatus[] getChildren()
getChildren in interface org.eclipse.core.runtime.IStatuspublic int getCode()
getCode in interface org.eclipse.core.runtime.IStatuspublic Throwable getException()
getException in interface org.eclipse.core.runtime.IStatuspublic String getMessage()
getMessage in interface org.eclipse.core.runtime.IStatuspublic String getPlugin()
getPlugin in interface org.eclipse.core.runtime.IStatuspublic int getSeverity()
getSeverity in interface org.eclipse.core.runtime.IStatuspublic boolean isMultiStatus()
isMultiStatus in interface org.eclipse.core.runtime.IStatuspublic boolean isOK()
isOK in interface org.eclipse.core.runtime.IStatuspublic boolean matches(int severityMask)
matches in interface org.eclipse.core.runtime.IStatusprotected void setCode(int code)
code - the plug-in-specific status code, or OKprotected void setException(Throwable exception)
exception - a low-level exception, or null if not applicableprotected void setMessage(String message)
message - a human-readable message, localized to the current localeprotected void setPlugin(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
CANCELCopyright © 2004–2020 Eclipse Foundation. All rights reserved.