-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add sanity check on attachment filename
- Loading branch information
bhou
committed
Apr 27, 2024
1 parent
26f3cc1
commit e07613b
Showing
5 changed files
with
68 additions
and
0 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
43 changes: 43 additions & 0 deletions
43
...ain/java/com/netflix/genie/web/exceptions/checked/IllegalAttachmentFileNameException.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,43 @@ | ||
package com.netflix.genie.web.exceptions.checked; | ||
|
||
/** | ||
* Exception thrown when the attachment filename is illegal. | ||
* | ||
* @author bhou | ||
*/ | ||
public class IllegalAttachmentFileNameException extends SaveAttachmentException { | ||
/** | ||
* Constructor. | ||
*/ | ||
public IllegalAttachmentFileNameException() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Constructor. | ||
* | ||
* @param message The detail message | ||
*/ | ||
public IllegalAttachmentFileNameException(final String message) { | ||
super(message); | ||
} | ||
|
||
/** | ||
* Constructor. | ||
* | ||
* @param message The detail message | ||
* @param cause The root cause of this exception | ||
*/ | ||
public IllegalAttachmentFileNameException(final String message, final Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
/** | ||
* Constructor. | ||
* | ||
* @param cause The root cause of this exception | ||
*/ | ||
public IllegalAttachmentFileNameException(final Throwable cause) { | ||
super(cause); | ||
} | ||
} |
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