InvalidEntityStateException

public final class InvalidEntityStateException

Signals that an entity state does not pass validation.

Functions

Link copied to clipboard
public Error error()
Returns an error occurred.
Link copied to clipboard
public static InvalidEntityStateException onConstraintViolations(EntityState state, Iterable<ConstraintViolation> violations)
Creates an exception instance for an entity state, which has fields that violate validation constraint(s).