Top Description Fields Constructors
jakarta.data.exceptions

public Class EmptyResultException

extends DataException
Class Inheritance

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.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
EmptyResultException(String
the detail message.
message
)

Constructs a new EmptyResultException exception with the specified detail message.

public
EmptyResultException(String
the detail message.
message
,
Throwable
another exception or error that caused this exception. Null indicates that no other cause is specified.
cause
)

Constructs a new EmptyResultException exception with the specified detail message.

public
EmptyResultException(Throwable
the cause.
cause
)

Constructs a new EmptyResultException exception with the specified cause.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.data.exceptions.DataException.serialVersionUID.

Constructor Detail

EmptyResultExceptionback to summary
public EmptyResultException(String message)

Constructs a new EmptyResultException exception with the specified detail message.

Parameters
message:String

the detail message.

EmptyResultExceptionback to summary
public EmptyResultException(String message, Throwable cause)

Constructs a new EmptyResultException exception with the specified detail message.

Parameters
message:String

the detail message.

cause:Throwable

another exception or error that caused this exception. Null indicates that no other cause is specified.

EmptyResultExceptionback to summary
public EmptyResultException(Throwable cause)

Constructs a new EmptyResultException exception with the specified cause.

Parameters
cause:Throwable

the cause.