org.enableit.db
Class DBException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.enableit.db.DBException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DataImportException, FileProcessorException, SchemaHandlingException

public class DBException
extends java.lang.Exception

General exception for use by this library's classes when communicating exceptions.

Version:
v1.0
See Also:
Serialized Form

Constructor Summary
DBException()
          Default constructor.
DBException(java.lang.String msg)
          Constructor setting msg.
DBException(java.lang.String msg, java.lang.Throwable rootCause)
          Constructor setting msg and root cause.
 
Method Summary
 java.lang.Throwable getRootCause()
           
 
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

DBException

public DBException()
Default constructor.


DBException

public DBException(java.lang.String msg)
Constructor setting msg.

Parameters:
msg - The exception message.

DBException

public DBException(java.lang.String msg,
                   java.lang.Throwable rootCause)
Constructor setting msg and root cause.

Parameters:
msg - The exception message.
rootCause - The root cause of the exception.
Method Detail

getRootCause

public java.lang.Throwable getRootCause()
Returns:
Root cause, may be null.


Copyright © 1999-2004 enableIT.org. All Rights Reserved.