org.apache.ojb.broker
Class PersistenceBrokerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.commons.lang.exception.NestableRuntimeException
                  extended by org.apache.ojb.broker.OJBRuntimeException
                      extended by org.apache.ojb.broker.PersistenceBrokerException
All Implemented Interfaces:
java.io.Serializable, org.apache.commons.lang.exception.Nestable
Direct Known Subclasses:
ConversionException, MetadataException, OptimisticLockException, PersistenceBrokerSQLException, TransactionAbortedException, TransactionInProgressException, TransactionNotInProgressException

public class PersistenceBrokerException
extends OJBRuntimeException

Base class for exceptions happening during persistence broker operations.

Version:
$Id: PersistenceBrokerException.java 365241 2005-12-22 21:15:14Z tomdz $
Author:
Thomas Mahler
See Also:
Serialized Form

Constructor Summary
PersistenceBrokerException()
          Creates a new exception instance.
PersistenceBrokerException(java.lang.String msg)
          Creates a new exception instance.
PersistenceBrokerException(java.lang.String msg, java.lang.Throwable cause)
          Creates a new exception instance.
PersistenceBrokerException(java.lang.Throwable cause)
          Creates a new exception instance.
 
Method Summary
 java.lang.Throwable getSourceException()
          Deprecated. Use NestableRuntimeException.getCause() instead
 
Methods inherited from class org.apache.commons.lang.exception.NestableRuntimeException
getCause, getMessage, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersistenceBrokerException

public PersistenceBrokerException()
Creates a new exception instance.


PersistenceBrokerException

public PersistenceBrokerException(java.lang.String msg)
Creates a new exception instance.

Parameters:
msg - The exception message

PersistenceBrokerException

public PersistenceBrokerException(java.lang.Throwable cause)
Creates a new exception instance.

Parameters:
cause - The base exception

PersistenceBrokerException

public PersistenceBrokerException(java.lang.String msg,
                                  java.lang.Throwable cause)
Creates a new exception instance.

Parameters:
msg - The exception message
cause - The base exception
Method Detail

getSourceException

public java.lang.Throwable getSourceException()
Deprecated. Use NestableRuntimeException.getCause() instead

Gets the original exception if any.

Returns:
The source exception


(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30