Package org.eclipse.ecf.core.status
Class SerializableStatus
- java.lang.Object
-
- org.eclipse.ecf.core.status.SerializableStatus
-
- All Implemented Interfaces:
Serializable,org.eclipse.core.runtime.IStatus
- Direct Known Subclasses:
SerializableMultiStatus
public class SerializableStatus extends Object implements org.eclipse.core.runtime.IStatus, Serializable
- Since:
- 3.2
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static org.eclipse.core.runtime.IStatusCANCEL_STATUSstatic org.eclipse.core.runtime.IStatusOK_STATUS
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.core.runtime.IStatus[]getChildren()intgetCode()ThrowablegetException()StringgetMessage()StringgetPlugin()intgetSeverity()booleanisMultiStatus()booleanisOK()booleanmatches(int severityMask)protected voidsetCode(int code)Sets the status code.protected voidsetException(Throwable exception)Sets the exception.protected voidsetMessage(String message)Sets the message.protected voidsetPlugin(String pluginId)Sets the plug-in id.protected voidsetSeverity(int severity)Sets the severity.StringtoString()Returns a string representation of the status, suitable for debugging purposes only.
-
-
-
Constructor Detail
-
SerializableStatus
public SerializableStatus(org.eclipse.core.runtime.IStatus status)
-
SerializableStatus
public SerializableStatus(int severity, String pluginId, int code, String message, Throwable exception)
-
SerializableStatus
public SerializableStatus(int severity, String pluginId, String message, Throwable exception)
-
-
Method Detail
-
getChildren
public org.eclipse.core.runtime.IStatus[] getChildren()
- Specified by:
getChildrenin interfaceorg.eclipse.core.runtime.IStatus
-
getCode
public int getCode()
- Specified by:
getCodein interfaceorg.eclipse.core.runtime.IStatus
-
getException
public Throwable getException()
- Specified by:
getExceptionin interfaceorg.eclipse.core.runtime.IStatus
-
getMessage
public String getMessage()
- Specified by:
getMessagein interfaceorg.eclipse.core.runtime.IStatus
-
getPlugin
public String getPlugin()
- Specified by:
getPluginin interfaceorg.eclipse.core.runtime.IStatus
-
getSeverity
public int getSeverity()
- Specified by:
getSeverityin interfaceorg.eclipse.core.runtime.IStatus
-
isMultiStatus
public boolean isMultiStatus()
- Specified by:
isMultiStatusin interfaceorg.eclipse.core.runtime.IStatus
-
isOK
public boolean isOK()
- Specified by:
isOKin interfaceorg.eclipse.core.runtime.IStatus
-
matches
public boolean matches(int severityMask)
- Specified by:
matchesin interfaceorg.eclipse.core.runtime.IStatus
-
setCode
protected void setCode(int code)
Sets the status code.- Parameters:
code- the plug-in-specific status code, orOK
-
setException
protected void setException(Throwable exception)
Sets the exception.- Parameters:
exception- a low-level exception, ornullif not applicable
-
setMessage
protected void setMessage(String message)
Sets the message. If null is passed, message is set to an empty string.- Parameters:
message- a human-readable message, localized to the current locale
-
setPlugin
protected void setPlugin(String pluginId)
Sets the plug-in id.- Parameters:
pluginId- the unique identifier of the relevant plug-in
-
setSeverity
protected void setSeverity(int severity)
Sets the severity.- Parameters:
severity- the severity; one ofOK,ERROR,INFO,WARNING, orCANCEL
-
-