org.apache.ojb.broker
Class PersistenceBrokerSQLException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.apache.commons.lang.exception.NestableRuntimeException
                  extended byorg.apache.ojb.broker.OJBRuntimeException
                      extended byorg.apache.ojb.broker.PersistenceBrokerException
                          extended byorg.apache.ojb.broker.PersistenceBrokerSQLException
All Implemented Interfaces:
org.apache.commons.lang.exception.Nestable, java.io.Serializable
Direct Known Subclasses:
KeyConstraintViolatedException

public class PersistenceBrokerSQLException
extends PersistenceBrokerException

Encapsulates a SQL exception thrown during a broker action.

Version:
$Id: PersistenceBrokerSQLException.java 365231 2005-12-21 22:22:08Z tomdz $
Author:
Thomas Mahler
See Also:
Serialized Form

Constructor Summary
PersistenceBrokerSQLException()
          Creates a new exception instance.
PersistenceBrokerSQLException(java.sql.SQLException cause)
          Creates a new exception instance.
PersistenceBrokerSQLException(java.lang.String msg)
          Creates a new exception instance.
PersistenceBrokerSQLException(java.lang.String msg, java.sql.SQLException cause)
          Creates a new exception instance.
 
Method Summary
 java.lang.String getSQLState()
          Returns the SQL state of the underlying SQLException.
 
Methods inherited from class org.apache.ojb.broker.PersistenceBrokerException
getSourceException
 
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

PersistenceBrokerSQLException

public PersistenceBrokerSQLException()
Creates a new exception instance.


PersistenceBrokerSQLException

public PersistenceBrokerSQLException(java.sql.SQLException cause)
Creates a new exception instance.

Parameters:
cause - The base exception

PersistenceBrokerSQLException

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

Parameters:
msg - The exception message

PersistenceBrokerSQLException

public PersistenceBrokerSQLException(java.lang.String msg,
                                     java.sql.SQLException cause)
Creates a new exception instance.

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

getSQLState

public java.lang.String getSQLState()
Returns the SQL state of the underlying SQLException.

Returns:
The SQL state


(C) 2002 - 2005 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