Module org.eclipse.persistence.core
Class BeanValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.eclipse.persistence.exceptions.EclipseLinkException
org.eclipse.persistence.exceptions.BeanValidationException
- All Implemented Interfaces:
Serializable
BeanValidationException should be used to represent any exception that happens during Bean Validation in MOXy.
- Since:
- 2.6
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
Fields inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException
-
Constructor Summary
ConstructorDescriptionINTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.BeanValidationException
(String msg, Throwable internalException) INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink. -
Method Summary
Modifier and TypeMethodDescriptionstatic BeanValidationException
constraintViolation
(Object[] args, Throwable internalException) static BeanValidationException
illegalValidationMode
(String prefix, String modeName) static BeanValidationException
notNullAndNillable
(String propertyName) static BeanValidationException
providerNotFound
(String prefix, Throwable internalException) Methods inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
cr, getErrorCode, getIndentationString, getInternalException, getMessage, getSession, getUnformattedMessage, hasBeenLogged, printStackTrace, printStackTrace, printStackTrace, setErrorCode, setHasBeenLogged, setIndentationString, setInternalException, setSession, setShouldPrintInternalException, shouldPrintInternalException, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
-
Field Details
-
PROVIDER_NOT_FOUND
public static final int PROVIDER_NOT_FOUND- See Also:
-
ILLEGAL_VALIDATION_MODE
public static final int ILLEGAL_VALIDATION_MODE- See Also:
-
CONSTRAINT_VIOLATION
public static final int CONSTRAINT_VIOLATION- See Also:
-
NOT_NULL_AND_NILLABLE
public static final int NOT_NULL_AND_NILLABLE- See Also:
-
-
Constructor Details
-
BeanValidationException
INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink. -
BeanValidationException
INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.
-
-
Method Details
-
constraintViolation
public static BeanValidationException constraintViolation(Object[] args, Throwable internalException) -
providerNotFound
-
illegalValidationMode
-
notNullAndNillable
-