org.apache.empire.db.exceptions
Class InternalSQLException

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.InternalSQLException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
QueryFailedException, StatementFailedException

public class InternalSQLException
extends EmpireException

See Also:
Serialized Form

Field Summary
static ErrorType errorType
           
 
Constructor Summary
  InternalSQLException(DBDatabaseDriver driver, SQLException cause)
           
  InternalSQLException(DBObject obj, SQLException cause)
           
protected InternalSQLException(ErrorType type, String[] params, SQLException cause)
           
 
Method Summary
protected static DBDatabaseDriver driverFromObject(DBObject obj)
           
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

InternalSQLException

public InternalSQLException(DBDatabaseDriver driver,
                            SQLException cause)

InternalSQLException

public InternalSQLException(DBObject obj,
                            SQLException cause)

InternalSQLException

protected InternalSQLException(ErrorType type,
                               String[] params,
                               SQLException cause)
Method Detail

messageFromSQLException

protected static String messageFromSQLException(DBDatabaseDriver driver,
                                                SQLException sqle)

driverFromObject

protected static DBDatabaseDriver driverFromObject(DBObject obj)


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