/** * Constructor. * * @param exception * the ClassNotFoundException that caused this exception */ public MissingClassException(ClassNotFoundException exception) { this(ClassNotFoundExceptionParser.getMissingClassName(exception)); initCause(exception); }
public static @CheckForNull @DottedClassName String getMissingClassName(ClassNotFoundException ex) { // Try to decode the error message by extracting the class name. String className = ClassNotFoundExceptionParser.getMissingClassName(ex); if (className != null) { ClassName.assertIsDotted(className); return className; } return null; }
@Override public void reportMissingClass(ClassNotFoundException ex) { String className = ClassNotFoundExceptionParser.getMissingClassName(ex); if (className != null) { logError("Missing class: " + className); } else { logError("Missing class: " + ex); } }
/** * Constructor. * * @param exception * the ClassNotFoundException that caused this exception */ public MissingClassException(ClassNotFoundException exception) { this(ClassNotFoundExceptionParser.getMissingClassName(exception)); initCause(exception); }
public static @CheckForNull @DottedClassName String getMissingClassName(ClassNotFoundException ex) { // Try to decode the error message by extracting the class name. String className = ClassNotFoundExceptionParser.getMissingClassName(ex); if (className != null) { ClassName.assertIsDotted(className); return className; } return null; }
@Override public void reportMissingClass(ClassNotFoundException ex) { String className = ClassNotFoundExceptionParser.getMissingClassName(ex); if (className != null) { logError("Missing class: " + className); } else { logError("Missing class: " + ex); } }