JProjects.eab.data
Class DAException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--JProjects.eab.data.DAException

public class DAException
extends java.lang.Exception

This class is for all exceptions thrown by methods that accesses Database.

Author:
Alexander Jaremenko
< jarem@altavista.net >
See Also:
Serialized Form

Constructor Summary
DAException(java.lang.String id)
           
DAException(java.lang.String id, java.sql.SQLException sqlEx)
           
DAException(java.lang.String id, java.lang.String property)
           
DAException(java.lang.String id, java.lang.String property, java.sql.SQLException sqlEx)
           
 
Method Summary
 java.lang.String getId()
           
 java.lang.String getProperty()
           
 java.sql.SQLException getSQLException()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DAException

public DAException(java.lang.String id)

DAException

public DAException(java.lang.String id,
                   java.sql.SQLException sqlEx)

DAException

public DAException(java.lang.String id,
                   java.lang.String property)

DAException

public DAException(java.lang.String id,
                   java.lang.String property,
                   java.sql.SQLException sqlEx)
Method Detail

getId

public java.lang.String getId()
Returns:
- the String message ID for the current DAException object.

getProperty

public java.lang.String getProperty()
Returns:
- the name of the property (attribute) that caused the DAException to occur.

getSQLException

public java.sql.SQLException getSQLException()
Returns:
the SQL Exception object that is associated with the current DAException object.