|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.qtitools.qti.exception.QTIException
public abstract class QTIException
Superclass of all checked exceptions (currently not used anywhere).
It is abstract class because you should never use this class directly. For example:
throw new QTIException()(this is not possible anyway)
And you should never use this class in method header also. For example:
void someMethod() throws QTIException
Only two legal usages are as superclass of all checked exceptions and in catch block, when you don't need to distinguish between different exceptions types. For example:
try
{
... some code here ...
}
catch (QTIException ex)
{
... some code here ...
}
Checked exceptions are reserved for special purposes. In general case you should use unchecked exception instead.
QTIRuntimeException,
Serialized Form| Constructor Summary | |
|---|---|
QTIException()
Constructs A new QTIException with null as its detailed message. |
|
QTIException(java.lang.String message)
Constructs A new exception with the specified detailed message. |
|
QTIException(java.lang.String message,
java.lang.Throwable cause)
Constructs A new exception with the specified detailed message and cause. |
|
QTIException(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 QTIException()
QTIException with null as its detailed message.
public QTIException(java.lang.String message)
message - the detail message
public QTIException(java.lang.String message,
java.lang.Throwable cause)
message - the detail messagecause - the causepublic QTIException(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 | |||||||||