View Javadoc
1   package de.dlr.shepard.exceptions;
2   
3   import jakarta.ws.rs.core.Response.Status;
4   
5   /**
6    * InvalidRequestException implements an exception. This exception should be
7    * thrown if a required value in the Request doesn't fulfill the necessary
8    * constraints. When a InvalidRequestException is thrown a Bad Request (status
9    * code 400) does get sent with a message informing the client about the
10   * specific error.
11   **/
12  public class InvalidRequestException extends ShepardException {
13  
14  	private static final long serialVersionUID = 8918170154141864994L;
15  
16  	public InvalidRequestException() {
17  		super("The request is incorrect and cannot be processed", Status.BAD_REQUEST);
18  	}
19  
20  	public InvalidRequestException(String message) {
21  		super(message, Status.BAD_REQUEST);
22  	}
23  
24  }