com.imcode.db
Class DatabaseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.imcode.db.DatabaseException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
IntegrityConstraintViolationException, StringTruncationException

public class DatabaseException
extends java.lang.RuntimeException

See Also:
Serialized Form

Constructor Summary
DatabaseException(java.lang.String message, java.lang.Throwable ex)
           
 
Method Summary
static DatabaseException fromSQLException(java.sql.SQLException cause)
           
static DatabaseException fromSQLException(java.lang.String message, java.sql.SQLException cause)
           
 
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

DatabaseException

public DatabaseException(java.lang.String message,
                         java.lang.Throwable ex)
Method Detail

fromSQLException

public static DatabaseException fromSQLException(java.sql.SQLException cause)

fromSQLException

public static DatabaseException fromSQLException(java.lang.String message,
                                                 java.sql.SQLException cause)


Copyright © -2006 . All Rights Reserved.