package org.jboss.resteasy.test.validation.resource; import javax.validation.Constraint; import javax.validation.Payload; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.ElementType.PARAMETER; import static java.lang.annotation.RetentionPolicy.RUNTIME; @Documented @Constraint(validatedBy = ValidationExceptionOtherValidator.class) @Target({FIELD, METHOD, PARAMETER}) @Retention(RUNTIME) public @interface ValidationExceptionOtherConstraint { String message() default "Throws OtherValidationException"; Class<?>[] groups() default {}; Class<? extends Payload>[] payload() default {}; String value() default ""; }