1 package de.dlr.shepard.exceptions;
2
3 import jakarta.ws.rs.core.Response.Status;
4
5
6
7
8
9
10
11
12 public class InvalidBodyException extends ShepardException {
13
14 private static final long serialVersionUID = 8918170154141864994L;
15 private static final Status status = Status.BAD_REQUEST;
16
17 public InvalidBodyException() {
18 super("Some of the values provided in the JSON Body are incorrect", status);
19 }
20
21 public InvalidBodyException(String message) {
22 super(message, status);
23 }
24
25 public InvalidBodyException(String format, Object... args) {
26 super(String.format(format, args), status);
27 }
28 }