Top Description Fields Constructors Methods
org.eclipse.persistence.exceptions

public final Class BeanValidationException

extends EclipseLinkException
Class Inheritance
Imports
org.eclipse.persistence.exceptions.i18n.ExceptionMessageGenerator

BeanValidationException should be used to represent any exception that happens during Bean Validation in MOXy.
Author
Marcel Valovy - [email protected]
Since
2.6

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
public static final int
Inherited from org.eclipse.persistence.exceptions.EclipseLinkException:
CRerrorCodehasBeenLoggedindentationStringinternalExceptionsessionshouldPrintInternalException

Constructor Summary

AccessConstructor and Description
public
BeanValidationException(String msg)

INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.

public
BeanValidationException(String msg, Throwable internalException)

INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.

Method Summary

Modifier and TypeMethod and Description
public static BeanValidationException
constraintViolation(Object[] args, Throwable internalException)

public static BeanValidationException
public static BeanValidationException
notNullAndNillable(String propertyName)

public static BeanValidationException
providerNotFound(String prefix, Throwable internalException)

Inherited from org.eclipse.persistence.exceptions.EclipseLinkException:
crgetErrorCodegetIndentationStringgetInternalExceptiongetMessagegetSessiongetUnformattedMessagehasBeenLoggedprintStackTraceprintStackTraceprintStackTracesetErrorCodesetHasBeenLoggedsetIndentationStringsetInternalExceptionsetSessionsetShouldPrintInternalExceptionshouldPrintInternalExceptiontoString

Field Detail

CONSTRAINT_VIOLATIONback to summary
public static final int CONSTRAINT_VIOLATION
ILLEGAL_VALIDATION_MODEback to summary
public static final int ILLEGAL_VALIDATION_MODE
NOT_NULL_AND_NILLABLEback to summary
public static final int NOT_NULL_AND_NILLABLE
PROVIDER_NOT_FOUNDback to summary
public static final int PROVIDER_NOT_FOUND

Constructor Detail

BeanValidationExceptionback to summary
public BeanValidationException(String msg)

INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.

BeanValidationExceptionback to summary
public BeanValidationException(String msg, Throwable internalException)

INTERNAL: EclipseLink exceptions should only be thrown by EclipseLink.

Method Detail

constraintViolationback to summary
public static BeanValidationException constraintViolation(Object[] args, Throwable internalException)
illegalValidationModeback to summary
public static BeanValidationException illegalValidationMode(String prefix, String modeName)
notNullAndNillableback to summary
public static BeanValidationException notNullAndNillable(String propertyName)
providerNotFoundback to summary
public static BeanValidationException providerNotFound(String prefix, Throwable internalException)