com.redhat.rhn.common.db
Class WrappedSQLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.redhat.rhn.common.RhnRuntimeException
                  extended by com.redhat.rhn.common.db.DatabaseException
                      extended by com.redhat.rhn.common.db.WrappedSQLException
All Implemented Interfaces:
java.io.Serializable

public class WrappedSQLException
extends DatabaseException

Thrown when a DB constraint is violated

See Also:
Serialized Form

Constructor Summary
WrappedSQLException(java.lang.String message)
          Constructor
WrappedSQLException(java.lang.String message, java.lang.Throwable cause)
          Constructor
 
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

WrappedSQLException

public WrappedSQLException(java.lang.String message)
Constructor

Parameters:
message - exception message

WrappedSQLException

public WrappedSQLException(java.lang.String message,
                           java.lang.Throwable cause)
Constructor

Parameters:
message - exception message
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)