-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throw custom exceptions handled by ResponseEntityExceptionHandler
- Loading branch information
1 parent
8f215d6
commit 634e333
Showing
5 changed files
with
77 additions
and
14 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
src/main/java/org/radarbase/appserver/exception/FileStorageException.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,13 @@ | ||
package org.radarbase.appserver.exception; | ||
|
||
public class FileStorageException extends RuntimeException { | ||
private static final long serialVersionUID = -793674245766939L; | ||
|
||
public FileStorageException(String message) { | ||
super(message); | ||
} | ||
|
||
public FileStorageException(String message, Object object) { | ||
super(message + " " + object.toString()); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/org/radarbase/appserver/exception/InvalidFileDetailsException.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,13 @@ | ||
package org.radarbase.appserver.exception; | ||
|
||
public class InvalidFileDetailsException extends IllegalArgumentException { | ||
private static final long serialVersionUID = -793674245766939L; | ||
|
||
public InvalidFileDetailsException(String message) { | ||
super(message); | ||
} | ||
|
||
public InvalidFileDetailsException(String message, Object object) { | ||
super(message + " " + object.toString()); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/org/radarbase/appserver/exception/InvalidPathDetailsException.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,13 @@ | ||
package org.radarbase.appserver.exception; | ||
|
||
public class InvalidPathDetailsException extends IllegalArgumentException { | ||
private static final long serialVersionUID = -793674245766939L; | ||
|
||
public InvalidPathDetailsException(String message) { | ||
super(message); | ||
} | ||
|
||
public InvalidPathDetailsException(String message, Object object) { | ||
super(message + " " + object.toString()); | ||
} | ||
} |
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