
net.optionfactory.problems.web.BadRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of problems Show documentation
Show all versions of problems Show documentation
A library to model and collect failures and map them as REST APIs responses
package net.optionfactory.problems.web;
import net.optionfactory.problems.Failure;
import net.optionfactory.problems.Problem;
import java.util.List;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(value = HttpStatus.BAD_REQUEST)
public class BadRequest extends Failure {
public BadRequest(List problems, Throwable cause) {
super(problems, cause);
}
public BadRequest(List problems, String reason) {
super(problems, reason);
}
public BadRequest(Problem problem, Throwable cause) {
super(problem, cause);
}
public BadRequest(Problem problem, String reason) {
super(problem, reason);
}
public BadRequest(List problems) {
super(problems);
}
public BadRequest(Problem problem) {
super(problem);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy