org.apache.torque
Class ConstraintViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.torque.TorqueException
org.apache.torque.ConstraintViolationException
- All Implemented Interfaces:
- Serializable
public class ConstraintViolationException
- extends TorqueException
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 $
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ConstraintViolationException
public ConstraintViolationException(Throwable nested)
- Constructs a new
ConstraintViolationException
with specified nested Throwable
.
- Parameters:
nested
- the exception or error that caused this exception
to be thrown.
ConstraintViolationException
public ConstraintViolationException(String msg,
Throwable nested)
- Constructs a new
ConstraintViolationException
with specified detail message and nested Throwable
.
- Parameters:
msg
- the error message.nested
- the exception or error that caused this exception
to be thrown.
Copyright © 2000-2013 The Apache Software Foundation. All Rights Reserved.