org.midao.jdbc.core.exception
Class MidaoSQLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.sql.SQLException
              extended by org.midao.jdbc.core.exception.MidaoSQLException
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<java.lang.Throwable>
Direct Known Subclasses:
BadSqlGrammarException, CannotAcquireLockException, CannotSerializeTransactionException, ConcurrencyFailureException, DataAccessResourceFailureException, DataIntegrityViolationException, DeadlockLoserDataAccessException, DuplicateKeyException, InvalidDataAccessApiUsageException, InvalidResultSetAccessException, PermissionDeniedDataAccessException, QueryTimeoutException, RecoverableDataAccessException, TransientDataAccessResourceException

public class MidaoSQLException
extends java.sql.SQLException

Default Midao Exception thrown during interaction with JDBC driver

See Also:
Serialized Form

Constructor Summary
MidaoSQLException(java.lang.String reason)
          Creates new MidaoSQLException instance
MidaoSQLException(java.lang.String reason, java.lang.String SQLState, int vendorCode)
          Creates new MidaoSQLException instance
MidaoSQLException(java.lang.String reason, java.lang.Throwable cause)
          Creates new MidaoSQLException instance
MidaoSQLException(java.lang.Throwable cause)
          Creates new MidaoSQLException instance
 
Method Summary
 
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextException
 
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

MidaoSQLException

public MidaoSQLException(java.lang.String reason,
                         java.lang.Throwable cause)
Creates new MidaoSQLException instance

Parameters:
reason - description of this exception
cause - Throwable cause

MidaoSQLException

public MidaoSQLException(java.lang.String reason)
Creates new MidaoSQLException instance

Parameters:
reason - description of this exception

MidaoSQLException

public MidaoSQLException(java.lang.Throwable cause)
Creates new MidaoSQLException instance

Parameters:
cause - Throwable cause

MidaoSQLException

public MidaoSQLException(java.lang.String reason,
                         java.lang.String SQLState,
                         int vendorCode)
Creates new MidaoSQLException instance

Parameters:
reason - description of this exception
SQLState - SQLException.SQLState
vendorCode - SQLException.vendorCode


Copyright © 2013. All Rights Reserved.