Package org.apache.torque
Klasse ConstraintViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
org.apache.torque.TorqueException
org.apache.torque.ConstraintViolationException
- Alle implementierten Schnittstellen:
Serializable
,Iterable<Throwable>
This exception is thrown if a database operation violates a
database constraint, e.g. a foreign key constraint, a unique constraint or a
not-null constraint.
- Version:
- $Id: ConstraintViolationException.java 1448414 2013-02-20 21:06:35Z tfischer $
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungConstraintViolationException
(String msg, Throwable nested) Constructs a newConstraintViolationException
with specified detail message and nestedThrowable
.Constructs a newConstraintViolationException
with specified nestedThrowable
. -
Methodenübersicht
Von Klasse geerbte Methoden java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextException
Von Klasse geerbte Methoden java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden java.lang.Iterable
forEach, spliterator
-
Konstruktordetails
-
ConstraintViolationException
Constructs a newConstraintViolationException
with specified nestedThrowable
.- Parameter:
nested
- the exception or error that caused this exception to be thrown.
-
ConstraintViolationException
Constructs a newConstraintViolationException
with specified detail message and nestedThrowable
.- Parameter:
msg
- the error message.nested
- the exception or error that caused this exception to be thrown.
-