private void reportException(Kind kind,Element element,Throwable t){
  StringWriter buf=new StringWriter();
  t.printStackTrace(new PrintWriter(buf));
  buf.toString();
  message(kind,element,"Exception thrown during processing: %s",buf.toString());
}

private void reportException ( Kind kind , Element element , Throwable t ) { StringWriter buf = new StringWriter ( ) ; t . printStackTrace ( new PrintWriter ( buf ) ) ; buf . toString ( ) ; message ( kind , element , "Exception thrown during processing: %s" , buf . toString ( ) ) ; }
bugs in an annotation processor can cause silent failure so try to report any exception throws as errors .
