Module jakarta.data

Class EmptyResultException

All Implemented Interfaces:
Serializable

public class EmptyResultException extends DataException
Data access exception thrown when a result was expected to have at least one row (or element) but zero rows (or elements) were actually returned.
See Also:
  • Constructor Details

    • EmptyResultException

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

      public EmptyResultException(String message, Throwable cause)
      Constructs a new EmptyResultException exception with the specified detail message.
      Parameters:
      message - the detail message.
      cause - another exception or error that caused this exception. Null indicates that no other cause is specified.
    • EmptyResultException

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