All Implemented Interfaces:
Serializable

public class PersistenceException extends DomainException
Exception thrown when a persistence operation cannot be completed.

Wraps infrastructure-level persistence failures and translates them into a domain exception so that the domain layer remains independent of any specific persistence technology.

See Also:
  • Constructor Details

    • PersistenceException

      public PersistenceException(String message)
      Constructs a PersistenceException with the given detail message.
      Parameters:
      message - the detail message describing the persistence failure
    • PersistenceException

      public PersistenceException(String message, Throwable cause)
      Constructs a PersistenceException with the given detail message and cause.
      Parameters:
      message - the detail message describing the persistence failure
      cause - the underlying cause