Class 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
    • 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)