public void onError(DiagnosticListener<JavaFileObject> callback){
  errorsDelegate=callback;
}

public void onError ( DiagnosticListener < JavaFileObject > callback ) { errorsDelegate = callback ; }
send all errors to callback , replacing any existing callback
