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.
- See Also:
- Author:
- Marcel Valovy - marcel.valovy@oracle.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException -
Constructor Summary
ConstructorsConstructorDescriptionINTERNAL: 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 BeanValidationExceptionconstraintViolation(Object[] args, Throwable internalException) static BeanValidationExceptionillegalValidationMode(String prefix, String modeName) static BeanValidationExceptionnotNullAndNillable(String propertyName) static BeanValidationExceptionproviderNotFound(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, toStringMethods 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
-