feat: better error message
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user