Jakarta Persistence (JPA) Class

jakarta.persistence.SchemaValidationException

java.lang.Object
  java.lang.Throwable
    java.lang.Exception
      jakarta.persistence.SchemaValidationException
Implemented Interfaces:
Serializable

Thrown when schema validation fails.
See Also:
Since:
Jakarta Persistence (JPA) 3.2

Public Constructors

SchemaValidationException(String message, Exception... failures)
Constructs a new instance with a message and, optionally, an array of exceptions, each representing a problem detected while validating the schema.
Parameters:
failures - an array of exceptions, each representing a separate problem
message - an overall message
Since:
Jakarta Persistence (JPA) 1.0

Public Instance Methods

Exception[] getFailures()
An array of problems detected while validating the schema.

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:
Jakarta Persistence (JPA) 1.0

Additional JDK methods inherited from java.lang.Throwable

java.lang.Throwable/addSuppressed(Throwable), java.lang.Throwable/fillInStackTrace(), java.lang.Throwable/fillInStackTrace(int), java.lang.Throwable/getCause(), java.lang.Throwable/getLocalizedMessage(), java.lang.Throwable/getMessage(), java.lang.Throwable/getOurStackTrace(), java.lang.Throwable/getStackTrace(), java.lang.Throwable/getSuppressed(), java.lang.Throwable/initCause(Throwable), java.lang.Throwable/lockedPrintStackTrace(PrintStreamOrWriter), java.lang.Throwable/printEnclosedStackTrace(PrintStreamOrWriter,StackTraceElement~,String,String,Set), java.lang.Throwable/printStackTrace(), java.lang.Throwable/printStackTrace(PrintStream), java.lang.Throwable/printStackTrace(PrintStreamOrWriter), java.lang.Throwable/printStackTrace(PrintWriter), java.lang.Throwable/readObject(ObjectInputStream), java.lang.Throwable/setCause(Throwable), java.lang.Throwable/setStackTrace(StackTraceElement~), java.lang.Throwable/toString(), java.lang.Throwable/validateSuppressedExceptionsList(List), java.lang.Throwable/writeObject(ObjectOutputStream)

Additional JDK methods inherited from java.lang.Object

java.lang.Object/clone(), java.lang.Object/equals(Object), java.lang.Object/finalize(), java.lang.Object/getClass(), java.lang.Object/hashCode(), java.lang.Object/notify(), java.lang.Object/notifyAll(), java.lang.Object/wait(), java.lang.Object/wait(long), java.lang.Object/wait(long,int), java.lang.Object/wait0(long)