Top Description Fields Constructors Methods
jakarta.persistence

public Class SchemaValidationException

extends Exception
Class Inheritance

Thrown when schema validation fails.
Since
3.2
See Also
SchemaManager#validate()

Field Summary

Modifier and TypeField and Description
private final Exception[]

Constructor Summary

AccessConstructor and Description
public
SchemaValidationException(String
an overall message
message
,
Exception...
an array of exceptions, each representing a separate problem
failures
)

Constructs a new instance with a message and, optionally, an array of exceptions, each representing a problem detected while validating the schema.

Method Summary

Modifier and TypeMethod and Description
public Exception[]
getFailures()

An array of problems detected while validating the schema.

Field Detail

failuresback to summary
private final Exception[] failures

Constructor Detail

SchemaValidationExceptionback to summary
public 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
message:String

an overall message

failures:Exception[]

an array of exceptions, each representing a separate problem

Method Detail

getFailuresback to summary
public 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.