com.groovemanager.spi.asio
Class ASIOError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.groovemanager.spi.asio.ASIOError
All Implemented Interfaces:
Serializable

public final class ASIOError
extends Exception

This class is a wrapper for the ASIOError constants It extends Exceptions so everytime a native method returns an ASIOError, which is not ASE_OK or ASE_SUCCESS an ASIOError will be thrown

Author:
Manu Robledo
See Also:
Serialized Form

Field Summary
(package private) static int ASE_HWMalfunction
          ASIOError constants
(package private) static int ASE_InvalidMode
          ASIOError constants
(package private) static int ASE_InvalidParameter
          ASIOError constants
(package private) static int ASE_NoClock
          ASIOError constants
(package private) static int ASE_NoMemory
          ASIOError constants
(package private) static int ASE_NotPresent
          ASIOError constants
(package private) static int ASE_OK
          ASIOError constants
(package private) static int ASE_SPNotAdvancing
          ASIOError constants
(package private) static int ASE_SUCCESS
          ASIOError constants
private  int code
          The ASIOError constant of this error
private static long serialVersionUID
           
 
Constructor Summary
private ASIOError(int code)
          Private constructor.
 
Method Summary
private static int ASE_HWMalfunction()
           
private static int ASE_InvalidMode()
           
private static int ASE_InvalidParameter()
           
private static int ASE_NoClock()
           
private static int ASE_NoMemory()
           
private static int ASE_NotPresent()
           
private static int ASE_OK()
           
private static int ASE_SPNotAdvancing()
           
private static int ASE_SUCCESS()
           
(package private)  int getCode()
          Get the ASIOError constant of this ASIOError
(package private) static String getMessage(int code)
          Get a qualified error message for a given ASIOError constant
(package private) static String getMessage(long code)
           
(package private) static void throwASIOError(int code)
          Throw an ASIOError if the constant is not ASE_OK and not ASE_SUCCESS
 
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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

ASE_OK

static final int ASE_OK
ASIOError constants


ASE_SUCCESS

static final int ASE_SUCCESS
ASIOError constants


ASE_NotPresent

static final int ASE_NotPresent
ASIOError constants


ASE_HWMalfunction

static final int ASE_HWMalfunction
ASIOError constants


ASE_InvalidParameter

static final int ASE_InvalidParameter
ASIOError constants


ASE_InvalidMode

static final int ASE_InvalidMode
ASIOError constants


ASE_SPNotAdvancing

static final int ASE_SPNotAdvancing
ASIOError constants


ASE_NoClock

static final int ASE_NoClock
ASIOError constants


ASE_NoMemory

static final int ASE_NoMemory
ASIOError constants


code

private int code
The ASIOError constant of this error

Constructor Detail

ASIOError

private ASIOError(int code)
Private constructor. Should only be called from ASIOError.throwASIOError()

Parameters:
code - The ASIOError constant
Method Detail

getCode

int getCode()
Get the ASIOError constant of this ASIOError

Returns:
The ASIOError constant which caused this ASIOError

ASE_OK

private static int ASE_OK()

ASE_SUCCESS

private static int ASE_SUCCESS()

ASE_NotPresent

private static int ASE_NotPresent()

ASE_HWMalfunction

private static int ASE_HWMalfunction()

ASE_InvalidParameter

private static int ASE_InvalidParameter()

ASE_InvalidMode

private static int ASE_InvalidMode()

ASE_SPNotAdvancing

private static int ASE_SPNotAdvancing()

ASE_NoClock

private static int ASE_NoClock()

ASE_NoMemory

private static int ASE_NoMemory()

getMessage

static String getMessage(int code)
Get a qualified error message for a given ASIOError constant

Parameters:
code - The ASIOError constant
Returns:
A corresponding error message

getMessage

static String getMessage(long code)
See Also:
getMessage(int code)

throwASIOError

static void throwASIOError(int code)
                    throws ASIOError
Throw an ASIOError if the constant is not ASE_OK and not ASE_SUCCESS

Parameters:
code - The ASIOError constant
Throws:
ASIOError - if the given constant is not a success constant