org.liquidsite.util.db
Class DatabaseException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.liquidsite.util.db.DatabaseException
All Implemented Interfaces:
java.io.Serializable

public class DatabaseException
extends java.lang.Exception

A database exception. This exception is thrown when a database query or statement couldn't be executed correctly. This may be due to invalid SQL syntax, or similar.

See Also:
Serialized Form

Constructor Summary
DatabaseException(java.lang.Exception cause)
          Creates a new database exception.
DatabaseException(java.lang.String message)
          Creates a new database exception.
DatabaseException(java.lang.String message, java.lang.Exception cause)
          Creates a new database exception.
 
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
 

Constructor Detail

DatabaseException

public DatabaseException(java.lang.String message)
Creates a new database exception.

Parameters:
message - the error message

DatabaseException

public DatabaseException(java.lang.Exception cause)
Creates a new database exception.

Parameters:
cause - the root cause to the error

DatabaseException

public DatabaseException(java.lang.String message,
                         java.lang.Exception cause)
Creates a new database exception.

Parameters:
message - the error message
cause - the root cause to the error