code: void apMessage(AnnotationProcessingError ex) {
          log.printLines(PrefixKind.JAVAC, "msg.proc.annotation.uncaught.exception");
          ex.getCause().printStackTrace(log.getWriter(WriterKind.NOTICE));
      }
docs: Print a message reporting an uncaught exception from an
  annotation processor.