generated from NASA-PDS/template-repo-java
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement BadRequestException handling
- Loading branch information
1 parent
2bfb351
commit ce42d7e
Showing
4 changed files
with
33 additions
and
35 deletions.
There are no files selected for viewing
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
17 changes: 17 additions & 0 deletions
17
service/src/main/java/gov/nasa/pds/api/registry/model/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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package gov.nasa.pds.api.registry.model.exceptions; | ||
|
||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
import java.io.Serial; | ||
|
||
public class BadRequestException extends RegistryApiException { | ||
private static final Logger log = LoggerFactory.getLogger(BadRequestException.class); | ||
@Serial | ||
private static final long serialVersionUID = 2026697251322082840L; | ||
|
||
public BadRequestException(String msg) { | ||
super("BadRequestException: " + msg); | ||
} | ||
|
||
} |
20 changes: 0 additions & 20 deletions
20
...ain/java/gov/nasa/pds/api/registry/model/exceptions/MiscellaneousBadRequestException.java
This file was deleted.
Oops, something went wrong.