-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
5a7cea9
commit c779276
Showing
4 changed files
with
35 additions
and
14 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
20 changes: 20 additions & 0 deletions
20
src/main/java/org/jlab/dtm/business/util/UserSuperFriendlyException.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,20 @@ | ||
package org.jlab.dtm.business.util; | ||
|
||
import org.jlab.smoothness.business.exception.UserFriendlyException; | ||
|
||
/** | ||
* This class is a workaround for CodeQL whining about any use of getMessage() being dangerous, even | ||
* if the intent is to relay a message directly to the user. | ||
*/ | ||
public class UserSuperFriendlyException extends UserFriendlyException { | ||
private final String userMessage; | ||
|
||
public UserSuperFriendlyException(String msg) { | ||
super(msg); | ||
this.userMessage = msg; | ||
} | ||
|
||
public String getUserMessage() { | ||
return userMessage; | ||
} | ||
} |
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