All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.hibernate.validator.runtime.jaxrs.ResteasyReactiveViolationException Maven / Gradle / Ivy

Go to download

Validate object properties (field, getter) and method parameters for your beans (REST, CDI, Jakarta Persistence)

There is a newer version: 3.18.0.CR1
Show newest version
package io.quarkus.hibernate.validator.runtime.jaxrs;

import java.util.Set;

import jakarta.validation.ConstraintViolation;
import jakarta.validation.ConstraintViolationException;

/**
 * Wrapper around a {@link jakarta.validation.ConstraintViolationException},
 * used to mark a constraint violation as relative to a REST endpoint call.
 * 

* Those violations are handled differently than violations from other, internal components: * a violation on an internal component is always considered an internal error (HTTP 500), * while a violation on the parameters of a REST endpoint call is a client error (HTTP 400). */ public class ResteasyReactiveViolationException extends ConstraintViolationException { private static final long serialVersionUID = 657697354453281559L; public ResteasyReactiveViolationException(String message, Set> constraintViolations) { super(message, constraintViolations); } public ResteasyReactiveViolationException(Set> constraintViolations) { super(constraintViolations); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy