|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.jsdt.support.deploymenthelper.OperationStatus
public class OperationStatus
OperationStatus object represents the outcome of an operation. This object is returned by methods providing details regarding failure, exceptions, or any messages concerning the operation.
Field Summary | |
---|---|
static int |
ERROR
Error status |
static int |
INFO
Information status |
static int |
OK
Normal status |
static int |
WARNING
Warning status |
Constructor Summary | |
---|---|
OperationStatus()
Sole constructor |
Method Summary | |
---|---|
java.lang.Throwable |
getException()
Get the exception |
java.lang.String |
getMessage()
Get the message |
int |
getSeverity()
Get severity status |
boolean |
isOK()
Verify the status is normal |
protected void |
setException(java.lang.Throwable e)
Set the exception |
protected void |
setMessage(java.lang.String msg)
Set the message |
protected void |
setSeverity(int severity)
Set severity status |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int OK
public static final int INFO
public static final int WARNING
public static final int ERROR
Constructor Detail |
---|
public OperationStatus()
Method Detail |
---|
protected void setSeverity(int severity)
severity
- - integer severity levelpublic int getSeverity()
protected void setMessage(java.lang.String msg)
msg
- - message need to be displayed.public java.lang.String getMessage()
protected void setException(java.lang.Throwable e)
e
- - exception message.public java.lang.Throwable getException()
public boolean isOK()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |