Created
November 22, 2020 12:37
-
-
Save NWYLZW/5a648ffb3957d9a19e74a0e624b71a21 to your computer and use it in GitHub Desktop.
som code
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
@ExceptionsEnum | |
public enum CommonExceptions { | |
/*public static final*/ NOT_FOUND /* = new CommonExceptions() */ /*enum*/ ; | |
public RuntimeException exceptions; | |
private CommonExceptions() { | |
super(); | |
} | |
private /*missing*/ CommonExceptions(Integer code, String message) { | |
exceptions = new RuntimeException("[" + (code + ("] " + message))); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment