quicktime.sound
Class SoundException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--quicktime.QTException
                    |
                    +--quicktime.sound.SoundException
All Implemented Interfaces:
java.io.Serializable

public final class SoundException
extends QTException

A General catch all class that is used to signal errors that occur from QT calls

See Also:
Serialized Form

Constructor Summary
SoundException(int val)
          Creates an exception with a specific error number
SoundException(java.lang.String str)
          Creates an exception with a message that could contain information that could be displayed to the user.
 
Method Summary
static void checkError(int err)
          This method will throw an exception if the incoming err argument is a non-zero value.
 
Methods inherited from class quicktime.QTException
errorCode, errorCodeToString, errorCodeToString, isDrawingError, toString
 
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

SoundException

public SoundException(java.lang.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

SoundException

public SoundException(int val)
Creates an exception with a specific error number
Parameters:
val - the error number
Method Detail

checkError

public static void checkError(int err)
                       throws SoundException
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