|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.starteam.exceptions.ServerException
public class ServerException
The ServerException class is a client side exception that is thrown when an error on the server is encountered.
| Method Summary | |
|---|---|
java.lang.Object |
getAuxData(java.lang.String key)
Returns the auxiliary data for a given key. |
java.lang.String[] |
getAuxKeys()
Returns an array of String keys to auxiliary exception data that can be passed to getAuxData(). |
java.lang.String |
getClassName()
Returns the server's class name for this exception. |
int |
getErrorCode()
The exception's error code. |
java.lang.String |
getErrorMessage()
The error message to be presented to the user. |
java.lang.String |
getErrorSource()
The server's error source for the exception. |
int |
getLogEntry()
The server log entry number for the error. |
java.lang.String |
getMessage()
Returns this exceptions error message. |
java.lang.String |
getNonLocalizedMessage()
The "default" (English) version of the error message. |
Server |
getServer()
Return the server originating this exception |
DateTime |
getTimeLogged()
The time at which the server logged the error. |
boolean |
isLogged()
Returns true if the error has been logged by the server. |
void |
setErrorMessage(java.lang.String errorMessage)
Replace the message string. |
java.lang.String |
toString()
Returns a string representation of this exception. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String getClassName()
public java.lang.String getErrorSource()
public java.lang.String getErrorMessage()
public java.lang.String getNonLocalizedMessage()
public Server getServer()
public int getErrorCode()
ServerException.getClassName()public boolean isLogged()
public DateTime getTimeLogged()
public int getLogEntry()
public java.lang.String[] getAuxKeys()
ServerException.getAuxData(String)public java.lang.Object getAuxData(java.lang.String key)
key - a key to auxiliary data
ServerException.getAuxKeys()public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String toString()
toString in class java.lang.Throwablepublic void setErrorMessage(java.lang.String errorMessage)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||