public class ConstraintException extends PersistenceException
END_INFO, START_INFO| Constructor and Description |
|---|
ConstraintException()
Constructs a new database constraint exception without a session and
with
null as its detail message. |
ConstraintException(Identifiable object)
Constructs a new database constraint violation exception for a given pc object
with
null as its detail message. |
ConstraintException(Identifiable object,
String message)
Constructs a new database constraint violation exception for a given session with the specified detail message.
|
ConstraintException(Identifiable object,
String message,
Throwable cause)
Constructs a new database constraint violation exception for a given session with the specified detail message and
cause.
|
ConstraintException(Identifiable object,
Throwable cause)
Constructs a new database constraint violation exception for a given session with the specified cause and a
detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of
cause).
|
ConstraintException(Session session)
Constructs a new database constraint violation exception for a given session
with
null as its detail message. |
ConstraintException(Session session,
String message)
Constructs a new database constraint violation exception for a given session with the specified detail message.
|
ConstraintException(Session session,
String message,
Throwable cause)
Constructs a new database constraint violation exception for a given session with the specified detail message and
cause.
|
ConstraintException(Session session,
Throwable cause)
Constructs a new database constraint violation exception for a given session with the specified cause and a
detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of
cause).
|
ConstraintException(String message)
Constructs a new database constraint exception without a session with the specified detail message.
|
ConstraintException(String message,
Throwable cause)
Constructs a new database constraint exception without a session with the specified detail message and
cause.
|
createFromRemoteException, extractPersistenceException, getIdentifiable, getMessage, getSession, setIdentifiable, setSession, updateDbObjectaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ConstraintException(Session session)
null as its detail message.
The cause is not initialized, and may subsequently be
initialized by a call to Throwable.initCause(java.lang.Throwable).session - the sessionpublic ConstraintException(Session session, String message)
Throwable.initCause(java.lang.Throwable).session - the sessionmessage - the detail message. The detail message is saved for
later retrieval by the PersistenceException.getMessage() method.public ConstraintException(Session session, String message, Throwable cause)
Note that the detail message associated with
cause is not automatically incorporated in
this constraint's detail message.
session - the sessionmessage - the detail message (which is saved for later retrieval
by the PersistenceException.getMessage() method).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.)public ConstraintException(Session session, Throwable cause)
session - the sessioncause - 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.)public ConstraintException(Identifiable object)
null as its detail message.
The cause is not initialized, and may subsequently be
initialized by a call to Throwable.initCause(java.lang.Throwable).object - the persistent objectpublic ConstraintException(Identifiable object, String message)
Throwable.initCause(java.lang.Throwable).object - the persistent objectmessage - the detail message. The detail message is saved for
later retrieval by the PersistenceException.getMessage() method.public ConstraintException(Identifiable object, String message, Throwable cause)
Note that the detail message associated with
cause is not automatically incorporated in
this constraint's detail message.
object - the persistent objectmessage - the detail message (which is saved for later retrieval
by the PersistenceException.getMessage() method).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.)public ConstraintException(Identifiable object, Throwable cause)
object - the persistent objectcause - 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.)public ConstraintException()
null as its detail message.
The cause is not initialized, and may subsequently be
initialized by a call to Throwable.initCause(java.lang.Throwable).public ConstraintException(String message)
Throwable.initCause(java.lang.Throwable).message - the detail message. The detail message is saved for
later retrieval by the PersistenceException.getMessage() method.public ConstraintException(String message, Throwable cause)
Note that the detail message associated with
cause is not automatically incorporated in
this runtime exception's detail message.
message - the detail message (which is saved for later retrieval
by the PersistenceException.getMessage() method).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.)Tentackle - distributed, domain- and model-driven