if (ape.isFatal()) {
throw ape;
}
if (++errorCount>100){
throw new AnnotationProcessorException(
AnnotationUtils.getLocalString(
"enterprise.deployment.annotation.toomanyerror",
"Too many errors, annotation processing abandoned."));
}
processingResult =
HandlerProcessingResultImpl.getDefaultResult(
annotation.annotationType(), ResultType.FAILED);
} catch(Throwable e){
AnnotationProcessorException ape = new AnnotationProcessorException(e.getMessage(), element);
ape.initCause(e);
throw ape;
}
result.addAll(processingResult);
}
} else {
if (delegate!=null) {
delegate.process(ctx, element, result);
} else {
ctx.getErrorHandler().fine(
new AnnotationProcessorException("No handler defined for "
+ annotation.annotationType()));
}
}
}