} catch (final Exception ex) {
final IllegalClassFormatException wrapper = new IllegalClassFormatException(
format("Error while instrumenting class %s.", classname));
// Report this, as the exception is ignored by the JVM:
logger.logExeption(wrapper);
throw (IllegalClassFormatException) wrapper.initCause(ex);
}
}
/**
* Checks whether this class should be instrumented.