1/*
2 * Copyright (c) 1998, 2006, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.  Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26package com.sun.javadoc;
27
28/**
29 * This interface provides error, warning and notice printing.
30 *
31 * @since 1.2
32 * @author Robert Field
33 *
34 * @deprecated
35 *   The declarations in this package have been superseded by those
36 *   in the package {@code jdk.javadoc.doclet}.
37 *   For more information, see the <i>Migration Guide</i> in the documentation for that package.
38 */
39@Deprecated
40public interface DocErrorReporter {
41
42    /**
43     * Print error message and increment error count.
44     *
45     * @param msg message to print
46     */
47    void printError(String msg);
48
49    /**
50     * Print an error message and increment error count.
51     *
52     * @param pos the position item where the error occurs
53     * @param msg message to print
54     * @since 1.4
55     */
56    void printError(SourcePosition pos, String msg);
57
58    /**
59     * Print warning message and increment warning count.
60     *
61     * @param msg message to print
62     */
63    void printWarning(String msg);
64
65    /**
66     * Print warning message and increment warning count.
67     *
68     * @param pos the position item where the warning occurs
69     * @param msg message to print
70     * @since 1.4
71     */
72    void printWarning(SourcePosition pos, String msg);
73
74    /**
75     * Print a message.
76     *
77     * @param msg message to print
78     */
79    void printNotice(String msg);
80
81    /**
82     * Print a message.
83     *
84     * @param pos the position item where the message occurs
85     * @param msg message to print
86     * @since 1.4
87     */
88    void printNotice(SourcePosition pos, String msg);
89}
90