Hi i try to create new annotation with action:
My annotation
@Retention(RetentionPolicy.RUNTIME)
public @interface myCustomAnnotations{
String errorMessage();
}
My fucntion
@myCustomAnnotations(errorMessage = "error message")
public void sendIssue() {
}
now i want to log the error message if someone call this method
I search for ever for solution, so if you can help me, it will be awesome!!!