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:
java.io.Serializable
public final class BeanValidationException extends EclipseLinkException
BeanValidationException should be used to represent any exception that happens during Bean Validation in MOXy.- See Also:
- Serialized Form
- Author:
- Marcel Valovy - marcel.valovy@oracle.com
- Since:
- 2.6
-
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRAINT_VIOLATION
static int
ILLEGAL_VALIDATION_MODE
static int
NOT_NULL_AND_NILLABLE
static int
PROVIDER_NOT_FOUND
-
Fields inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException
-
-
Constructor Summary
Constructors Constructor Description BeanValidationException(java.lang.String msg)
INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.BeanValidationException(java.lang.String msg, java.lang.Throwable internalException)
INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BeanValidationException
constraintViolation(java.lang.Object[] args, java.lang.Throwable internalException)
static BeanValidationException
illegalValidationMode(java.lang.String prefix, java.lang.String modeName)
static BeanValidationException
notNullAndNillable(java.lang.String propertyName)
static BeanValidationException
providerNotFound(java.lang.String prefix, java.lang.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
-
-
-
-
Field Detail
-
PROVIDER_NOT_FOUND
public static final int PROVIDER_NOT_FOUND
- See Also:
- Constant Field Values
-
ILLEGAL_VALIDATION_MODE
public static final int ILLEGAL_VALIDATION_MODE
- See Also:
- Constant Field Values
-
CONSTRAINT_VIOLATION
public static final int CONSTRAINT_VIOLATION
- See Also:
- Constant Field Values
-
NOT_NULL_AND_NILLABLE
public static final int NOT_NULL_AND_NILLABLE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BeanValidationException
public BeanValidationException(java.lang.String msg)
INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.
-
BeanValidationException
public BeanValidationException(java.lang.String msg, java.lang.Throwable internalException)
INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.
-
-
Method Detail
-
constraintViolation
public static BeanValidationException constraintViolation(java.lang.Object[] args, java.lang.Throwable internalException)
-
providerNotFound
public static BeanValidationException providerNotFound(java.lang.String prefix, java.lang.Throwable internalException)
-
illegalValidationMode
public static BeanValidationException illegalValidationMode(java.lang.String prefix, java.lang.String modeName)
-
notNullAndNillable
public static BeanValidationException notNullAndNillable(java.lang.String propertyName)
-
-