-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
78 additions
and
12 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
armadillo/src/main/java/org/molgenis/armadillo/exceptions/InvalidObjectNameException.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 org.molgenis.armadillo.exceptions; | ||
|
||
import static java.lang.String.format; | ||
import static org.springframework.http.HttpStatus.BAD_REQUEST; | ||
|
||
import org.springframework.web.bind.annotation.ResponseStatus; | ||
|
||
@ResponseStatus(BAD_REQUEST) | ||
public class InvalidObjectNameException extends RuntimeException { | ||
|
||
public InvalidObjectNameException(String objectName) { | ||
super( | ||
format( | ||
"Object name '%s' is invalid. Object format should be in the following format: folder/file.", | ||
objectName)); | ||
} | ||
} |
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
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