KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > xml > stream > XMLReporter


1 package javax.xml.stream;
2
3 /**
4  * This interface is used to report non-fatal errors.
5  * Only warnings should be echoed through this interface.
6  * @version 1.0
7  * @author Copyright (c) 2003 by BEA Systems. All Rights Reserved.
8  * @since 1.6
9  */

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 JavaDoc message, String JavaDoc errorType, Object JavaDoc relatedInformation, Location location)
25     throws XMLStreamException;
26 }
27
Popular Tags