try {
return instrumenter.instrument(classfileBuffer);
} catch (Throwable t) {
final Long id = Long.valueOf(CRC64.checksum(classfileBuffer));
final String msg = "Error while instrumenting class %s (id=%016x).";
final IllegalClassFormatException ex = new IllegalClassFormatException(
format(msg, classname, id));
ex.initCause(t);
// Report this, as the exception is ignored by the JVM:
logger.logExeption(ex);
throw ex;
}
}