站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.4.1, Java 2 SDK 英文文档

DocErrorReporter (Doclet API) - JDK 5 Documentation v1.4.1, Java 2 SDK 英文文档

Doclet API

com.sun.javadoc
Interface DocErrorReporter

All Known Subinterfaces:
RootDoc

public interface DocErrorReporter

This interface provides error, warning and notice printing.

Since:
JDK1.2

Method Summary
 void printError(SourcePosition pos, String msg)
          Print an error message and increment error count.
 void printError(String msg)
          Print error message and increment error count.
 void printNotice(SourcePosition pos, String msg)
          Print a message.
 void printNotice(String msg)
          Print a message.
 void printWarning(SourcePosition pos, String msg)
          Print warning message and increment warning count.
 void printWarning(String msg)
          Print warning message and increment warning count.
 

Method Detail

printError

public void printError(String msg)
Print error message and increment error count.

Parameters:
msg - message to print

printError

public void printError(SourcePosition pos,
                       String msg)
Print an error message and increment error count.

Parameters:
pos - the position item where the error occurs
msg - message to print
Since:
J2SE1.4

printWarning

public void printWarning(String msg)
Print warning message and increment warning count.

Parameters:
msg - message to print

printWarning

public void printWarning(SourcePosition pos,
                         String msg)
Print warning message and increment warning count.

Parameters:
pos - the position item where the warning occurs
msg - message to print
Since:
J2SE1.4

printNotice

public void printNotice(String msg)
Print a message.

Parameters:
msg - message to print

printNotice

public void printNotice(SourcePosition pos,
                        String msg)
Print a message.

Parameters:
pos - the position item where the message occurs
msg - message to print
Since:
J2SE1.4

Doclet API

Submit a bug or feature
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.