org.apache.empire.db.exceptions
Class EmpireSQLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.empire.exceptions.EmpireException
                  extended by org.apache.empire.db.exceptions.EmpireSQLException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
QueryFailedException, StatementFailedException

public class EmpireSQLException
extends EmpireException

See Also:
Serialized Form

Field Summary
static ErrorType errorType
           
 
Constructor Summary
  EmpireSQLException(DBDatabaseDriver driver, SQLException cause)
           
  EmpireSQLException(DBObject obj, SQLException cause)
           
protected EmpireSQLException(ErrorType type, String[] params, int nativeErrorIndex, SQLException cause)
           
 
Method Summary
protected static DBDatabaseDriver driverFromObject(DBObject obj)
           
 String getNativeErrorMessage()
           
protected static String messageFromSQLException(DBDatabaseDriver driver, SQLException sqle)
           
 
Methods inherited from class org.apache.empire.exceptions.EmpireException
getErrorParams, getErrorType, log
 
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
 

Field Detail

errorType

public static final ErrorType errorType
Constructor Detail

EmpireSQLException

public EmpireSQLException(DBDatabaseDriver driver,
                          SQLException cause)

EmpireSQLException

public EmpireSQLException(DBObject obj,
                          SQLException cause)

EmpireSQLException

protected EmpireSQLException(ErrorType type,
                             String[] params,
                             int nativeErrorIndex,
                             SQLException cause)
Method Detail

messageFromSQLException

protected static String messageFromSQLException(DBDatabaseDriver driver,
                                                SQLException sqle)

driverFromObject

protected static DBDatabaseDriver driverFromObject(DBObject obj)

getNativeErrorMessage

public String getNativeErrorMessage()


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.