package de.accso.flexinale.backoffice.api_in.rest;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

@SuppressWarnings("unused")
@ResponseStatus(HttpStatus.BAD_REQUEST)
public class RestBadRequestException extends RuntimeException {

    // see https://www.springboottutorial.com/spring-boot-exception-handling-for-rest-services

    public RestBadRequestException(final String message) {
        super(message);
    }

    public RestBadRequestException(final String message, final Exception ex) {
        super(message, ex);
    }
}
