paulscode.sound.libraries
Class LibraryJOAL.Exception

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

public static class LibraryJOAL.Exception
extends SoundSystemException

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

See Also:
Serialized Form

Field Summary
static int CREATE
          Global identifier for an exception during AL.create().
static int INVALID_ENUM
          Global identifier for an invalid parameter in OpenAL.
static int INVALID_NAME
          Global identifier for an invalid name parameter in OpenAL.
static int INVALID_OPERATION
          Global identifier for an illegal call in OpenAL.
static int INVALID_VALUE
          Global identifier for an invalid enumerated parameter value in OpenAL.
static int LISTENER
          Global identifier for an exception while creating the OpenAL Listener.
static int NO_AL_PITCH
          Global identifier for OpenAL AL_PITCH not supported.
static int OUT_OF_MEMORY
          Global identifier for OpenAL out of memory.
 
Fields inherited from class paulscode.sound.SoundSystemException
CLASS_TYPE_MISMATCH, ERROR_NONE, LIBRARY_NULL, LIBRARY_TYPE, NULL_PARAMETER, UNKNOWN_ERROR
 
Constructor Summary
LibraryJOAL.Exception(java.lang.String message)
          Constructor: Generates a standard "unknown error" exception with the specified message.
LibraryJOAL.Exception(java.lang.String message, int type)
          Constructor: Generates an exception of the specified type, 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

CREATE

public static final int CREATE
Global identifier for an exception during AL.create(). Probably means that OpenAL is not supported.

See Also:
Constant Field Values

INVALID_NAME

public static final int INVALID_NAME
Global identifier for an invalid name parameter in OpenAL.

See Also:
Constant Field Values

INVALID_ENUM

public static final int INVALID_ENUM
Global identifier for an invalid parameter in OpenAL.

See Also:
Constant Field Values

INVALID_VALUE

public static final int INVALID_VALUE
Global identifier for an invalid enumerated parameter value in OpenAL.

See Also:
Constant Field Values

INVALID_OPERATION

public static final int INVALID_OPERATION
Global identifier for an illegal call in OpenAL.

See Also:
Constant Field Values

OUT_OF_MEMORY

public static final int OUT_OF_MEMORY
Global identifier for OpenAL out of memory.

See Also:
Constant Field Values

LISTENER

public static final int LISTENER
Global identifier for an exception while creating the OpenAL Listener.

See Also:
Constant Field Values

NO_AL_PITCH

public static final int NO_AL_PITCH
Global identifier for OpenAL AL_PITCH not supported.

See Also:
Constant Field Values
Constructor Detail

LibraryJOAL.Exception

public LibraryJOAL.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.

LibraryJOAL.Exception

public LibraryJOAL.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.