Top Description Constructors
jakarta.persistence

public Class NoResultException

extends PersistenceException
Class Inheritance

Thrown by the persistence provider when Query.getSingleResult() or TypedQuery.getSingleResult()is executed on a query and there is no result to return. This exception will not cause the current transaction, if one is active, to be marked for rollback.
Since
1.0
See Also
Query#getSingleResult(), TypedQuery#getSingleResult()

Constructor Summary

AccessConstructor and Description
public
NoResultException()

Constructs a new NoResultException exception with null as its detail message.

public
NoResultException(String
the detail message.
message
)

Constructs a new NoResultException exception with the specified detail message.

Constructor Detail

NoResultExceptionback to summary
public NoResultException()

Constructs a new NoResultException exception with null as its detail message.

NoResultExceptionback to summary
public NoResultException(String message)

Constructs a new NoResultException exception with the specified detail message.

Parameters
message:String

the detail message.