paulscode.sound.libraries
Class LibraryJavaSound.Exception

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by paulscode.sound.SoundSystemException
              extended by paulscode.sound.libraries.LibraryJavaSound.Exception
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
LibraryJavaSound

public static class LibraryJavaSound.Exception
extends SoundSystemException

The LibraryJavaSound.Exception class provides library-specific error information.

See Also:
Serialized Form

Field Summary
static int MIXER_PROBLEM
          Global identifier for a problem with the mixer.
static LibraryJavaSound.MixerRanking mixerRanking
          If there is a mixer problem, this will hold additional information.
 
Fields inherited from class paulscode.sound.SoundSystemException
CLASS_TYPE_MISMATCH, ERROR_NONE, LIBRARY_NULL, LIBRARY_TYPE, NULL_PARAMETER, UNKNOWN_ERROR
 
Constructor Summary
LibraryJavaSound.Exception(java.lang.String message)
          Constructor: Generates a standard "unknown error" exception with the specified message.
LibraryJavaSound.Exception(java.lang.String message, int type)
          Constructor: Generates an exception of the specified type, with the specified message.
LibraryJavaSound.Exception(java.lang.String message, LibraryJavaSound.MixerRanking rank)
          Constructor: Generates a "Mixer Problem" exception with the specified message.
 
Method Summary
 
Methods inherited from class paulscode.sound.SoundSystemException
getType
 
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
 

Field Detail

MIXER_PROBLEM

public static final int MIXER_PROBLEM
Global identifier for a problem with the mixer.

See Also:
Constant Field Values

mixerRanking

public static LibraryJavaSound.MixerRanking mixerRanking
If there is a mixer problem, this will hold additional information.

Constructor Detail

LibraryJavaSound.Exception

public LibraryJavaSound.Exception(java.lang.String message)
Constructor: Generates a standard "unknown error" exception with the specified message.

Parameters:
message - A brief description of the problem that occurred.

LibraryJavaSound.Exception

public LibraryJavaSound.Exception(java.lang.String message,
                                  int type)
Constructor: Generates an exception of the specified type, with the specified message.

Parameters:
message - A brief description of the problem that occurred.
type - Identifier indicating they type of error.

LibraryJavaSound.Exception

public LibraryJavaSound.Exception(java.lang.String message,
                                  LibraryJavaSound.MixerRanking rank)
Constructor: Generates a "Mixer Problem" exception with the specified message. Also, the mixer ranking is stored, containing additional information about the problem.

Parameters:
message - A brief description of the problem that occurred.
rank - Ranking of the mixer involved.