org.javalite.activejdbc
Class DBException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.javalite.activejdbc.DBException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NotAssociatedException, ValidationException

public class DBException
extends RuntimeException

Generic exception wrapper for all things DB.

Author:
Igor Polevoy
See Also:
Serialized Form

Constructor Summary
DBException()
           
DBException(String message)
           
DBException(String query, Object[] params, Throwable cause)
           
DBException(String message, Throwable cause)
           
DBException(Throwable cause)
           
 
Method Summary
 String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

DBException

public DBException(Throwable cause)

DBException

public DBException(String message)

DBException

public DBException(String message,
                   Throwable cause)

DBException

public DBException(String query,
                   Object[] params,
                   Throwable cause)
Parameters:
query - SQL query
params - - array of parameters, can be null
cause - real cause.

DBException

public DBException()
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable


Copyright © 2015 JavaLite. All rights reserved.