All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.QTException

java.lang.Object
   |
   +----java.lang.Throwable
           |
           +----java.lang.Exception
                   |
                   +----quicktime.QTException

public class QTException
extends Exception
A General catch all class that is used to signal errors that occur from QTML calls


Constructor Index

 o QTException(int)
Creates an exception with a specific error number
 o QTException(String)
Creates an exception with a message that could contain information that could be displayed to the user.

Method Index

 o checkError(int)
This method will throw an exception if the incoming err argument is a non-zero value.
 o errorCode()
Return the error code that generated the exception.
 o errorCodeToString()
Returns a string that represents the error code of the current QTException.
 o errorCodeToString(int)
Returns a string that represents the error code of the current QTException.
 o isDrawingError(int)
This routine checks the result of drawing operations that may report an error code that is transitory and can be ignored.
 o toString()
Print current build information and current exception details.

Constructors

 o QTException
 public QTException(String str)
Creates an exception with a message that could contain information that could be displayed to the user.

Parameters:
str - The message that could be displayed to the user
 o QTException
 public QTException(int val)
Creates an exception with a specific error number

Parameters:
val - the error number

Methods

 o errorCodeToString
 public static String errorCodeToString(int eCode)
Returns a string that represents the error code of the current QTException. This will return the name of the error code as represented in the quicmtime.Errors interface. If the error code is unknown then the string "Unknown Error Code" will be returned.

Returns:
a string that represents the current error code of the QTException.
 o checkError
 public static void checkError(int err) throws QTException
This method will throw an exception if the incoming err argument is a non-zero value.

Parameters:
err - the result or error code if non-zero an exception is thrown
 o isDrawingError
 public static int isDrawingError(int err)
This routine checks the result of drawing operations that may report an error code that is transitory and can be ignored.

Error codes ignored are:

 o errorCode
 public int errorCode()
Return the error code that generated the exception. If there was no QT error code number known this value will be 0 in which case the message contains information about the exception.

Returns:
an int
 o errorCodeToString
 public String errorCodeToString()
Returns a string that represents the error code of the current QTException. This will return the name of the error code as represented in the quicmtime.Errors interface. If the error code is unknown then the string "Unknown Error Code" will be returned.

Returns:
a string that represents the current error code of the QTException.
 o toString
 public String toString()
Print current build information and current exception details.

Overrides:
toString in class Throwable

All Packages  Class Hierarchy  This Package  Previous  Next  Index