01 package javax.xml.stream;
02
03 /**
04 * This interface is used to report non-fatal errors.
05 * Only warnings should be echoed through this interface.
06 * @version 1.0
07 * @author Copyright (c) 2003 by BEA Systems. All Rights Reserved.
08 * @since 1.6
09 */
10 public interface XMLReporter {
11
12 /**
13 * Report the desired message in an application specific format.
14 * Only warnings and non-fatal errors should be reported through
15 * this interface.
16 * Fatal errors should be thrown as XMLStreamException.
17 *
18 * @param message the error message
19 * @param errorType an implementation defined error type
20 * @param relatedInformation information related to the error, if available
21 * @param location the location of the error, if available
22 * @throws XMLStreamException
23 */
24 public void report(String message, String errorType,
25 Object relatedInformation, Location location)
26 throws XMLStreamException;
27 }
|