|
|||||||||
| 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.SDKRuntimeException
public final class SDKRuntimeException
This is a subclass of java.lang.RuntimeException which may be thrown by the SDK when a runtime error occurs. Note that not all exceptions thrown by the SDK will be subclasses of this class. This class is most often used when re-throwing an exception that was due to some other underlying cause. In those cases the SDKRuntimeException object may have have an associated underlying exception which was the root cause of the problem. This is very similar to the "chained exception" facility introduced in Java 1.4. However, since the StarTeam SDK was designed to work with Java 1.1, we could not use the 1.4 exception chaining mechanism but instead added our own getException method. NOTE: this class now works properly when used against a VM that is < 1.4, and also uses 1.4 functionality when it's available.
| Method Summary | |
|---|---|
java.lang.String |
getErrorCode()
Return a unique error code that identified this exception May return NULL if this exception is aggregated from other exceptions such as I/O or Server exceptions |
java.lang.Throwable |
getException()
Returns the exception that underlies the SDKRuntimeException being thrown. |
static boolean |
isInternalApplicationError(java.lang.Throwable throwable)
Returns true if the given Exception represents an internal SDK error; false, otherwise. |
boolean |
isInternalError()
Returns true if this exception represents an internal SDK error; false, otherwise. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public java.lang.Throwable getException()
public java.lang.String getErrorCode()
public boolean isInternalError()
public static boolean isInternalApplicationError(java.lang.Throwable throwable)
throwable - The exception to be checked if it's an internal SDK error.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||