public void error(DocTreePath path, String key, Object... args) {
        report(ERROR, path, resources.getText(key, args));
    }
public void error ( DocTreePath path , String key , Object ... args ) { report ( ERROR , path , resources . getText ( key , args ) ) ; }
Reports an error message to the doclet's reporter.

@param path a path identifying the position to be included with
the message
@param key the name of a resource containing the message to be printed
@param args optional arguments to be replaced in the message.