Class PdoRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.tentackle.common.TentackleRuntimeException
org.tentackle.session.PersistenceException
org.tentackle.pdo.PdoRuntimeException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PdoCacheException
PDO runtime exception.
Unspecified exceptions related to PDOs.
Unspecified exceptions related to PDOs.
- Author:
- harald
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new pdo runtime exception without a session and withnullas its detail message.PdoRuntimeException(String message) Constructs a new pdo runtime exception without a session with the specified detail message.PdoRuntimeException(String message, Throwable cause) Constructs a new pdo runtime exception without a session with the specified detail message and cause.PdoRuntimeException(Throwable cause) Constructs a new pdo runtime exception without a session with the specified cause and a detail message of(cause==null ?Constructs a new pdo runtime exception for a given db object withnullas its detail message.PdoRuntimeException(PersistentDomainObject<?> pdo, String message) Constructs a new pdo runtime exception for a given session with the specified detail message.PdoRuntimeException(PersistentDomainObject<?> pdo, String message, Throwable cause) Constructs a new pdo runtime exception for a given session with the specified detail message and cause.PdoRuntimeException(PersistentDomainObject<?> pdo, Throwable cause) Constructs a new pdo runtime exception for a given session with the specified cause and a detail message of(cause==null ?PdoRuntimeException(Session session) Constructs a new pdo runtime exception for a given session withnullas its detail message.PdoRuntimeException(Session session, String message) Constructs a new pdo runtime exception for a given session with the specified detail message.PdoRuntimeException(Session session, String message, Throwable cause) Constructs a new pdo runtime exception for a given session with the specified detail message and cause.PdoRuntimeException(Session session, Throwable cause) Constructs a new pdo runtime exception for a given session with the specified cause and a detail message of(cause==null ? -
Method Summary
Methods inherited from class PersistenceException
evaluate, extractPersistenceException, getIdentifiable, getMessage, getSession, updateDbObjectMethods inherited from class org.tentackle.common.TentackleRuntimeException
isTemporary, setTemporaryMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PdoRuntimeException
Constructs a new pdo runtime exception for a given session withnullas its detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(Throwable).- Parameters:
session- the session
-
PdoRuntimeException
Constructs a new pdo runtime exception for a given session with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(Throwable).- Parameters:
session- the sessionmessage- the detail message. The detail message is saved for later retrieval by thePersistenceException.getMessage()method.
-
PdoRuntimeException
Constructs a new pdo runtime exception for a given session with the specified detail message and cause.Note that the detail message associated with
causeis not automatically incorporated in this runtime exception's detail message.- Parameters:
session- the sessionmessage- the detail message (which is saved for later retrieval by thePersistenceException.getMessage()method).cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-
PdoRuntimeException
Constructs a new pdo runtime 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 ofcause). This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.- Parameters:
session- the sessioncause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-
PdoRuntimeException
Constructs a new pdo runtime exception for a given db object withnullas its detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(Throwable).- Parameters:
pdo- the db object
-
PdoRuntimeException
Constructs a new pdo runtime exception for a given session with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(Throwable).- Parameters:
pdo- the db objectmessage- the detail message. The detail message is saved for later retrieval by thePersistenceException.getMessage()method.
-
PdoRuntimeException
Constructs a new pdo runtime exception for a given session with the specified detail message and cause.Note that the detail message associated with
causeis not automatically incorporated in this runtime exception's detail message.- Parameters:
pdo- the db objectmessage- the detail message (which is saved for later retrieval by thePersistenceException.getMessage()method).cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-
PdoRuntimeException
Constructs a new pdo runtime 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 ofcause). This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.- Parameters:
pdo- the db objectcause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-
PdoRuntimeException
public PdoRuntimeException()Constructs a new pdo runtime exception without a session and withnullas its detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(Throwable). -
PdoRuntimeException
Constructs a new pdo runtime exception without a session with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(Throwable).- Parameters:
message- the detail message. The detail message is saved for later retrieval by thePersistenceException.getMessage()method.
-
PdoRuntimeException
Constructs a new pdo runtime exception without a session with the specified detail message and cause.Note that the detail message associated with
causeis not automatically incorporated in this runtime exception's detail message.- Parameters:
message- the detail message (which is saved for later retrieval by thePersistenceException.getMessage()method).cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-
PdoRuntimeException
Constructs a new pdo runtime exception without a session with the specified cause and a detail message of(cause==null ? null : cause.toString())(which typically contains the class and detail message ofcause). This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.- Parameters:
cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-
-
Method Details
-
getPdo
Gets the PDO.- Returns:
- the object, null if exception is not related to an object
-