java/javase/21/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a>&nbsp;message,
 <a href="../AnnotationTarget.html" title="interface in jakarta.enterprise.lang.model">AnnotationTarget</a>&nbsp;relatedTo)</code></div>
<div class="col-last even-row-color">
<div class="block">Add an error which is related to given <a href="../AnnotationTarget.html" title="interface in jakarta.enterprise.lang.model"><code>AnnotationTarget</code></a> (which is most 