-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #307 from madgik/fix/bad_user_input_status_code
BadUserInput results to 400 response code.
- Loading branch information
Showing
3 changed files
with
9 additions
and
15 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...dler/HBP/Exceptions/RequestException.java → ...r/HBP/Exceptions/BadRequestException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package madgik.exareme.master.gateway.async.handler.HBP.Exceptions; | ||
|
||
public class RequestException extends Exception { | ||
public RequestException(String algorithmName, String message) { | ||
public class BadRequestException extends Exception { | ||
public BadRequestException(String algorithmName, String message) { | ||
super(message + " Algorithm: " + algorithmName); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters