|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--com.starbase.starteam.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.
| Constructor Summary | |
SDKRuntimeException(java.lang.String message)
We may extend this some day to include COM error codes. |
|
SDKRuntimeException(java.lang.String message,
java.lang.Throwable exception)
Constructor passing both a message and a contained exception. |
|
SDKRuntimeException(java.lang.Throwable exception)
Constructor passing only a contained exception. |
|
| Method Summary | |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
java.lang.Throwable |
getException()
Returns the exception that underlies the SDKRuntimeException being thrown. |
java.lang.String |
getMessage()
Returns the detail message string of this throwable. |
int |
hashCode()
returns a unique hash for all instances of this type |
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, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SDKRuntimeException(java.lang.String message)
public SDKRuntimeException(java.lang.Throwable exception)
public SDKRuntimeException(java.lang.String message,
java.lang.Throwable exception)
| Method Detail |
public java.lang.Throwable getException()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic boolean equals(java.lang.Object source)
equals in class java.lang.Objectsource - Object the source to comapre with
public int hashCode()
hashCode in class java.lang.Objectpublic boolean isInternalError()
public static boolean isInternalApplicationError(java.lang.Throwable throwable)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||