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:
Serializable, org.apache.commons.lang.exception.Nestable
Direct Known Subclasses:
ConfigurationException, 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,v 1.1 2007-08-24 22:17:35 ewestfal Exp $
Author:
Thomas Mahler
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.commons.lang.exception.NestableRuntimeException
delegate
 
Constructor Summary
PersistenceBrokerException()
          Creates a new exception instance.
PersistenceBrokerException(String msg)
          Creates a new exception instance.
PersistenceBrokerException(String msg, Throwable cause)
          Creates a new exception instance.
PersistenceBrokerException(Throwable cause)
          Creates a new exception instance.
 
Method Summary
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersistenceBrokerException

public PersistenceBrokerException()
Creates a new exception instance.


PersistenceBrokerException

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

Parameters:
msg - The exception message

PersistenceBrokerException

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

Parameters:
cause - The base exception

PersistenceBrokerException

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

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

getSourceException

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

Gets the original exception if any.

Returns:
The source exception


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.