to.etc.webapp.query
Class QDbException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by to.etc.webapp.nls.CodeException
                  extended by to.etc.webapp.query.QDbException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
QConcurrentUpdateException, QConstraintViolationException, QDuplicateKeyException, QNotFoundException, QQueryTimeoutException

public class QDbException
extends CodeException

Base class for all generic query exceptions.

Author:
Frits Jalvingh Created on Mar 11, 2010
See Also:
Serialized Form

Field Summary
static BundleRef BUNDLE
           
 
Constructor Summary
QDbException(BundleRef bundle, java.lang.String code, java.lang.Object... parameters)
           
QDbException(java.lang.String code, java.lang.Object... parameters)
           
QDbException(java.lang.Throwable t, BundleRef bundle, java.lang.String code, java.lang.Object... parameters)
           
QDbException(java.lang.Throwable t, java.lang.String code, java.lang.Object... parameters)
           
 
Method Summary
static QDbException findTranslation(java.lang.Exception x)
          Create the proper exception from a SQLException type.
 
Methods inherited from class to.etc.webapp.nls.CodeException
getBundle, getCode, getMessage, getParameters
 
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
 

Field Detail

BUNDLE

public static final BundleRef BUNDLE
Constructor Detail

QDbException

public QDbException(BundleRef bundle,
                    java.lang.String code,
                    java.lang.Object... parameters)

QDbException

public QDbException(java.lang.Throwable t,
                    BundleRef bundle,
                    java.lang.String code,
                    java.lang.Object... parameters)

QDbException

public QDbException(java.lang.String code,
                    java.lang.Object... parameters)

QDbException

public QDbException(java.lang.Throwable t,
                    java.lang.String code,
                    java.lang.Object... parameters)
Method Detail

findTranslation

public static QDbException findTranslation(java.lang.Exception x)
Create the proper exception from a SQLException type. If no translation is reasonable this returns NULL; that usually indicates that the original exception must be rethrown. We know of\ the following constraint classes:

Parameters:
sx -
Returns: