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