paulscode.sound
Class SoundSystemException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by paulscode.sound.SoundSystemException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
LibraryJavaSound.Exception, LibraryJOAL.Exception, LibraryLWJGLOpenAL.Exception

public class SoundSystemException
extends java.lang.Exception

The SoundSystemException class is used to provide information about serious errors.

SoundSystem License:

You are free to use this library for any purpose, commercial or otherwise. You may modify this library or source code, and distribute it any way you like, provided the following conditions are met:
1) You may not falsely claim to be the author of this library or any unmodified portion of it.
2) You may not copyright this library or a modified version of it and then sue me for copyright infringement.
3) If you modify the source code, you must clearly document the changes made before redistributing the modified source code, so other users know it is not the original code.
4) You are not required to give me credit for this library in any derived work, but if you do, you must also mention my website: http://www.paulscode.com
5) I the author will not be responsible for any damages (physical, financial, or otherwise) caused by the use if this library or any part of it.
6) I the author do not guarantee, warrant, or make any representations, either expressed or implied, regarding the use of this library or any part of it.

Author: Paul Lamb
http://www.paulscode.com

See Also:
Serialized Form

Field Summary
static int CLASS_TYPE_MISMATCH
          Global identifier for a class type mismatch.
static int ERROR_NONE
          Global identifier for no problem.
static int LIBRARY_NULL
          Global identifier for the sound library does not exist.
static int LIBRARY_TYPE
          Global identifier for the sound library does not exist.
static int NULL_PARAMETER
          Global identifier for a null parameter.
static int UNKNOWN_ERROR
          Global identifier for a generic exception.
 
Constructor Summary
SoundSystemException(java.lang.String message)
          Constructor: Generic exception.
SoundSystemException(java.lang.String message, int type)
          Constructor: Specify the error message and type of exception.
 
Method Summary
 int 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

ERROR_NONE

public static final int ERROR_NONE
Global identifier for no problem.

See Also:
Constant Field Values

UNKNOWN_ERROR

public static final int UNKNOWN_ERROR
Global identifier for a generic exception.

See Also:
Constant Field Values

NULL_PARAMETER

public static final int NULL_PARAMETER
Global identifier for a null parameter.

See Also:
Constant Field Values

CLASS_TYPE_MISMATCH

public static final int CLASS_TYPE_MISMATCH
Global identifier for a class type mismatch.

See Also:
Constant Field Values

LIBRARY_NULL

public static final int LIBRARY_NULL
Global identifier for the sound library does not exist.

See Also:
Constant Field Values

LIBRARY_TYPE

public static final int LIBRARY_TYPE
Global identifier for the sound library does not exist.

See Also:
Constant Field Values
Constructor Detail

SoundSystemException

public SoundSystemException(java.lang.String message)
Constructor: Generic exception. Specify the error message.


SoundSystemException

public SoundSystemException(java.lang.String message,
                            int type)
Constructor: Specify the error message and type of exception.

Parameters:
message - Description of the problem.
type - Global identifier for type of exception.
Method Detail

getType

public int getType()