de.mguennewig.pobjects
Class PObjSQLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by de.mguennewig.pobjects.PObjException
              extended by de.mguennewig.pobjects.PObjSQLException
All Implemented Interfaces:
java.io.Serializable

public class PObjSQLException
extends PObjException

Wrapper around SQL exceptions thrown by the database driver.

The wrapper is used so that all methods of the pobjects library that are used by the application throw exceptions derived from PObjException.

Author:
Michael Günnewig
See Also:
Serialized Form

Constructor Summary
PObjSQLException(java.sql.SQLException sqlException)
          Creates a new PObjSQLException.
PObjSQLException(java.lang.String msg)
          Creates a new PObjSQLException.
 
Method Summary
 java.lang.String getMessage()
          Returns a description text for this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PObjSQLException

public PObjSQLException(java.lang.String msg)
Creates a new PObjSQLException.


PObjSQLException

public PObjSQLException(java.sql.SQLException sqlException)
Creates a new PObjSQLException.

Method Detail

getMessage

public java.lang.String getMessage()
Returns a description text for this exception.

Overrides:
getMessage in class java.lang.Throwable
See Also:
Throwable.getMessage()