Module jakarta.data

Class DataException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DataConnectionException, EmptyResultException, EntityExistsException, MappingException, NonUniqueResultException, OptimisticLockingFailureException

public class DataException extends RuntimeException
Thrown by the data provider when a problem occurs.
See Also:
  • Constructor Details

    • DataException

      public DataException(String message)
      Constructs a new DataException exception with the specified detail message.
      Parameters:
      message - the detail message.
    • DataException

      public DataException(String message, Throwable cause)
      Constructs a new DataException exception with the specified detail message and cause.
      Parameters:
      message - the detail message.
      cause - the cause.
    • DataException

      public DataException(Throwable cause)
      Constructs a new DataException exception with the specified cause.
      Parameters:
      cause - the cause.