public class NotFoundException extends PersistenceException
END_INFO, START_INFO| Constructor and Description |
|---|
NotFoundException()
Constructs a new database object not found exception without a session and
with
null as its detail message. |
NotFoundException(Identifiable object)
Constructs a new database object not found exception for a given pc object
with
null as its detail message. |
NotFoundException(Identifiable object,
String message)
Constructs a new database object not found exception for a given session with the specified detail message.
|
NotFoundException(Identifiable object,
String message,
long persistedSerial)
Constructs a new database object not found exception for a given session with the specified detail message.
|
NotFoundException(Identifiable object,
String message,
Throwable cause)
Constructs a new database object not found exception for a given session with the specified detail message and
cause.
|
NotFoundException(Identifiable object,
Throwable cause)
Constructs a new database object not found 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).
|
NotFoundException(Session session)
Constructs a new database object not found exception for a given session
with
null as its detail message. |
NotFoundException(Session session,
String message)
Constructs a new database object not found exception for a given session with the specified detail message.
|
NotFoundException(Session session,
String message,
Throwable cause)
Constructs a new database object not found exception for a given session with the specified detail message and
cause.
|
NotFoundException(Session session,
Throwable cause)
Constructs a new database object not found 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).
|
NotFoundException(String message)
Constructs a new database object not found exception without a session with the specified detail message.
|
NotFoundException(String message,
Throwable cause)
Constructs a new database object not found exception without a session with the specified detail message and
cause.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getPersistedSerial()
Gets the effective serial of the object persisted in the database.
|
createFromRemoteException, extractPersistenceException, getIdentifiable, getMessage, getSession, setIdentifiable, setSession, updateDbObjectaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NotFoundException(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 NotFoundException(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 NotFoundException(Session session, String message, Throwable cause)
Note that the detail message associated with
cause is not automatically incorporated in
this object not found'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 NotFoundException(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 NotFoundException(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 NotFoundException(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 NotFoundException(Identifiable object, String message, long persistedSerial)
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.persistedSerial - the serial of the object in the database, -1 if no such object, 0 if unknownpublic NotFoundException(Identifiable object, String message, Throwable cause)
Note that the detail message associated with
cause is not automatically incorporated in
this object not found'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 NotFoundException(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 NotFoundException()
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 NotFoundException(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 NotFoundException(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