|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--quicktime.QTRuntimeException
QTRuntimeExceptions are thrown by the QTJava classes when an exceptional condition is caused that cannot be recovered from at runtime. This will usually occur within a java method (for eg. clone()) that has not API for throwing an exception. In the clone method for instance this exception is thrown if there is an out of memory condition.
Constructor Summary | |
QTRuntimeException(java.lang.Exception e)
Creates a QTRuntimeException |
|
QTRuntimeException(int val)
Creates an QTRuntimeException with a message that could contain information that could be displayed to the user. |
|
QTRuntimeException(QTException e)
Creates a QTRuntimeException |
|
QTRuntimeException(java.lang.String str)
Creates an QTRuntimeException with a message that could contain information that could be displayed to the user. |
Method Summary | |
int |
errorCode()
Return the error code that generated the exception. |
java.lang.String |
errorCodeToString()
Returns a string that represents the error code of the current QTException. |
static void |
handleOrThrow(QTRuntimeException e,
java.lang.Object eGenerator,
java.lang.String methodNameIfKnown)
If there is a handler registered for the exception it will be passed to that handler. |
static void |
registerHandler(QTRuntimeHandler h)
This registers an object that will handle the runtime Exceptions that may be generated through the (ab)normal running of a QTJava application or applet. |
java.lang.String |
toString()
Print current build information and current exception details. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public QTRuntimeException(QTException e)
e
- the QTException that created the runtime errorpublic QTRuntimeException(java.lang.Exception e)
e
- the Exception that created the runtime errorpublic QTRuntimeException(int val)
val
- typically some error codepublic QTRuntimeException(java.lang.String str)
str
- The message that could be displayed to the userMethod Detail |
public static void handleOrThrow(QTRuntimeException e, java.lang.Object eGenerator, java.lang.String methodNameIfKnown)
e
- the exception to either handle or throwpublic static void registerHandler(QTRuntimeHandler h)
h
- the QTRuntimeHandler that will handle or throw QTRuntimeExceptions or null to remove handler.public final int errorCode()
public java.lang.String errorCodeToString()
public java.lang.String toString()
toString
in class java.lang.Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |