package fr.titionfire.ffsaf.rest.exception;

import jakarta.ws.rs.core.Response;
import lombok.Getter;

import java.io.Serial;

@Getter
public class DetailException extends Exception {

    @Serial
    private static final long serialVersionUID = 5349921926328753676L;

    private final Response.Status status;

    public DetailException(Response.Status status, String message) {
        super(message);
        this.status = status;
    }
}
