I want to manage my exceptions like this :
protected String displayException(Exception e, String specificMessage) {
String message = (specificMessage == null) ? e.getMessage() : specificString;
return message;
}
Do I have an annotation that would allow me to do so (example @Nullable or @Optional)? And if yes, in which library can I find it (example @Nullable is in the Spring library and in the Jetbrains library)