[docs] addToClasspath() throws exception if fails