XMLReporter (Java EE 5)

Java EE API


javax.xml.stream Interface XMLReporter


public interface XMLReporter


此接口用于报告非严重错误。只有警告才应该通过此接口再次报告。
英文文档:

This interface is used to report non-fatal errors. Only warnings should be echoed through this interface.

Version:
1.0
Author:
Copyright (c) 2003 by BEA Systems. All Rights Reserved.

Method Summary
 void
 

Method Detail

public void report(String message, String errorType, Object relatedInformation, Location location) throws XMLStreamException
以特定于应用程序的格式报告所需消息。只有警告和非严重错误才应该通过此接口报告。严重错误应作为 XMLStreamException 抛出。
message 错误消息
errorType 一个定义错误类型的实现
relatedInformation 与错误相关的信息(如果可用)
location 错误的位置(如果可用)
ThrowsXMLStreamException:
英文文档:

report

void report(String message,
            String errorType,
            Object relatedInformation,
            Location location)
            throws XMLStreamException
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.

Parameters:
message - the error message
errorType - an implementation defined error type
relatedInformation - information related to the error, if available
location - the location of the error, if available
Throws:
XMLStreamException


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!