@Target(value=METHOD)
@Retention(value=SOURCE)
public @interface LogsErrorWhenReturningNull
This annotation indicates that the annotated method logs a processing error when returning null.
The caller can thus simply check whether the return value is null without having to log another error.
The reason for not throwing exceptions instead is that the annotation processing shall continue to the end.
- See Also:
ProcessingLog.error(java.lang.CharSequence, net.digitalid.utility.processing.logging.SourcePosition, java.lang.Object...)