< prev index next >
src/java.xml/share/classes/javax/xml/stream/XMLReporter.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -33,30 +33,19 @@
* @since 1.6
*/
public interface XMLReporter {
/**
-
* Report the desired message in an application specific format.
-
* Only warnings and non-fatal errors should be reported through
-
* this interface.
-
* Fatal errors should be thrown as XMLStreamException.
-
*
-
* @param message the error message
-
* @param errorType an implementation defined error type
-
* @param relatedInformation information related to the error, if available
-
* @param location the location of the error, if available
-
- * @throws XMLStreamException
-
+ * @throws XMLStreamException if an error occurs
*/
public void report(String message, String errorType, Object relatedInformation, Location location)
throws XMLStreamException;
}
< prev index next >