org.qtitools.qti.exception
Class QTIException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.qtitools.qti.exception.QTIException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
QTIProcessingInterrupt

public abstract class QTIException
extends java.lang.Exception

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.

Author:
Jiri Kajaba
See Also:
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

QTIException

public QTIException()
Constructs A new QTIException with null as its detailed message.


QTIException

public QTIException(java.lang.String message)
Constructs A new exception with the specified detailed message.

Parameters:
message - the detail message

QTIException

public QTIException(java.lang.String message,
                    java.lang.Throwable cause)
Constructs A new exception with the specified detailed message and cause.

Parameters:
message - the detail message
cause - the cause

QTIException

public QTIException(java.lang.Throwable cause)
Constructs A new exception with the specified cause. If cause is not null detailed message is set from this cause.

Parameters:
cause - the cause


Copyright © 2009. All Rights Reserved.