public AnalysisErrorInfo getErrors(Source source) {
InstrumentationBuilder instrumentation = Instrumentation.builder("Analysis-getErrors");
checkThread(instrumentation);
try {
instrumentation.metric("contextId", contextId);
AnalysisErrorInfo ret = basis.getErrors(source);
if (ret != null) {
instrumentation.metric("Errors-count", ret.getErrors().length);
}
return ret;
} finally {
instrumentation.log();
}