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

public class PdoRuntimeException extends PersistenceException
PDO runtime exception.
Unspecified exceptions related to PDOs.
Author:
harald
See Also:
  • Constructor Details

    • PdoRuntimeException

      public PdoRuntimeException(Session session)
      Constructs a new pdo runtime exception for a given session with null as its detail message. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(Throwable).
      Parameters:
      session - the session
    • PdoRuntimeException

      public PdoRuntimeException(Session session, String message)
      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 to Throwable.initCause(Throwable).
      Parameters:
      session - the session
      message - the detail message. The detail message is saved for later retrieval by the PersistenceException.getMessage() method.
    • PdoRuntimeException

      public PdoRuntimeException(Session session, String message, Throwable cause)
      Constructs a new pdo runtime exception for a given session with the specified detail message and cause.

      Note that the detail message associated with cause is not automatically incorporated in this runtime exception's detail message.

      Parameters:
      session - the session
      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.)
    • PdoRuntimeException

      public 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 ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.
      Parameters:
      session - the session
      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.)
    • PdoRuntimeException

      public PdoRuntimeException(PersistentDomainObject<?> pdo)
      Constructs a new pdo runtime exception for a given db object with null as its detail message. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(Throwable).
      Parameters:
      pdo - the db object
    • PdoRuntimeException

      public PdoRuntimeException(PersistentDomainObject<?> pdo, String message)
      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 to Throwable.initCause(Throwable).
      Parameters:
      pdo - the db object
      message - the detail message. The detail message is saved for later retrieval by the PersistenceException.getMessage() method.
    • PdoRuntimeException

      public PdoRuntimeException(PersistentDomainObject<?> pdo, String message, Throwable cause)
      Constructs a new pdo runtime exception for a given session with the specified detail message and cause.

      Note that the detail message associated with cause is not automatically incorporated in this runtime exception's detail message.

      Parameters:
      pdo - the db object
      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.)
    • PdoRuntimeException

      public 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 ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.
      Parameters:
      pdo - the db object
      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.)
    • PdoRuntimeException

      public PdoRuntimeException()
      Constructs a new pdo runtime exception without a session and with null as its detail message. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(Throwable).
    • PdoRuntimeException

      public PdoRuntimeException(String message)
      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 to Throwable.initCause(Throwable).
      Parameters:
      message - the detail message. The detail message is saved for later retrieval by the PersistenceException.getMessage() method.
    • PdoRuntimeException

      public PdoRuntimeException(String message, Throwable cause)
      Constructs a new pdo runtime exception without a session with the specified detail message and cause.

      Note that the detail message associated with cause is not automatically incorporated in this runtime exception's detail message.

      Parameters:
      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.)
    • PdoRuntimeException

      public PdoRuntimeException(Throwable cause)
      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 of cause). 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 the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
  • Method Details

    • getPdo

      public PersistentDomainObject<?> getPdo()
      Gets the PDO.
      Returns:
      the object, null if exception is not related to an object