at.wisch.joystick.exception
Class SDLErrorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by at.wisch.joystick.exception.FFJoystickException
              extended by at.wisch.joystick.exception.SDLErrorException
All Implemented Interfaces:
java.io.Serializable

public class SDLErrorException
extends FFJoystickException

The Class SDLErrorException. Indicates that an error happened during a call to the native SDL subsystem.

Author:
Martin Wischenbart
See Also:
Serialized Form

Constructor Summary
SDLErrorException()
          Instantiates a new SDLErrorException with an unknown reason.
SDLErrorException(java.lang.String errorMessage)
          Instantiates a new SDLErrorException with a detailed error message.
 
Method Summary
 java.lang.String getErrorMessage()
          Gets the error message describing this exception.
 
Methods inherited from class at.wisch.joystick.exception.FFJoystickException
printErrorMessage
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SDLErrorException

public SDLErrorException()
Instantiates a new SDLErrorException with an unknown reason.


SDLErrorException

public SDLErrorException(java.lang.String errorMessage)
Instantiates a new SDLErrorException with a detailed error message.

Parameters:
errorMessage - the error message from the native SDL error
Method Detail

getErrorMessage

public java.lang.String getErrorMessage()
Gets the error message describing this exception. The message's prefix will be "SDL: ".

Specified by:
getErrorMessage in class FFJoystickException
Returns:
the error message