SchemaValidationException
java.lang.Object ∟ java.lang.Throwable ∟ java.lang.Exception ∟ jakarta.persistence.SchemaValidationException
Thrown when schema validation fails.
- See Also:
- validate()
- Since:
- JPA 3.2
Public Constructors
SchemaValidationException(String message, Exception... failures)
- Parameters:
message
- an overall messagefailures
- an array of exceptions, each representing a separate problem
- Since:
- JPA 3.2
Public Methods
Exception[] getFailures()
A persistence provider might choose to fail fast upon encountering a problem with one database object, in which case there is only one problem reported here. Alternatively, a provider might choose to continue validating the remaining database objects, in which case multiple problems might be reported, each as a separate exception instance.
- Since:
- JPA 3.2