Compiere 3.1

org.compiere.util
Class DBException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.compiere.util.DBException
All Implemented Interfaces:
Serializable

public class DBException
extends RuntimeException

This RuntimeException is used to pass SQLException up the chain of calling methods to determine what to do where needed.

Version:
$Id: DBException.java,v 1.2 2006/07/30 00:54:35 jjanke Exp $
Author:
Vincent Harcq
See Also:
Serialized Form

Constructor Summary
DBException(Exception e)
          Create a new DBException based on a SQLException
DBException(String msg)
          Create a new DBException
 
Method Summary
 
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(Exception e)
Create a new DBException based on a SQLException

Parameters:
e - Specicy the Exception cause

DBException

public DBException(String msg)
Create a new DBException

Parameters:
msg - Message

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.