|
||||||||||
| 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
org.qtitools.qti.exception.QTIRuntimeException
public abstract class QTIRuntimeException
Superclass of all unchecked exceptions.
It is abstract class because you should never use this class directly. For example:
throw new QTIRuntimeException()(this is not possible anyway)
And you should never use this class in method header also. For example:
void someMethod() throws QTIRuntimeException
Only two legal usages are as superclass of all unchecked exceptions and in catch block, when you don't need to distinguish between different exceptions types. For example:
try
{
... some code here ...
}
catch (QTIRuntimeException ex)
{
... some code here ...
}
We have decided to use only unchecked exceptions in JQTI library. There is big discussion on Internet about checked/unchecked exceptions (see Google).
QTIException,
Serialized Form| Constructor Summary | |
|---|---|
QTIRuntimeException()
Constructs A new exception with null as its detailed message. |
|
QTIRuntimeException(java.lang.String message)
Constructs A new exception with the specified detailed message. |
|
QTIRuntimeException(java.lang.String message,
java.lang.Throwable cause)
Constructs A new exception with the specified detailed message and cause. |
|
QTIRuntimeException(java.lang.Throwable cause)
Constructs A new exception with the specified cause. |
|
| Method Summary |
|---|
| 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QTIRuntimeException()
null as its detailed message.
public QTIRuntimeException(java.lang.String message)
message - the detail message
public QTIRuntimeException(java.lang.String message,
java.lang.Throwable cause)
message - the detail messagecause - the causepublic QTIRuntimeException(java.lang.Throwable cause)
null detailed message is set from this cause.
cause - the cause
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||