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

net.optionfactory.problems.web.BadRequest Maven / Gradle / Ivy

Go to download

A library to model and collect failures and map them as REST APIs responses

There is a newer version: 2.1
Show newest version
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