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: */
09: public interface XMLReporter {
10:
11: /**
12: * Report the desired message in an application specific format.
13: * Only warnings and non-fatal errors should be reported through
14: * this interface.
15: * Fatal errors should be thrown as XMLStreamException.
16: *
17: * @param message the error message
18: * @param errorType an implementation defined error type
19: * @param relatedInformation information related to the error, if available
20: * @param location the location of the error, if available
21: * @throws XMLStreamException
22: */
23: public void report(String message, String errorType,
24: Object relatedInformation, Location location)
25: throws XMLStreamException;
26: }
|