Skip to content

Instantly share code, notes, and snippets.

@NWYLZW
Created November 22, 2020 12:37
Show Gist options
  • Save NWYLZW/5a648ffb3957d9a19e74a0e624b71a21 to your computer and use it in GitHub Desktop.
Save NWYLZW/5a648ffb3957d9a19e74a0e624b71a21 to your computer and use it in GitHub Desktop.
som code
@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