|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.xml.stream Interface XMLReporter
public interface XMLReporter
此接口用于报告非严重错误。只有警告才应该通过此接口再次报告。
version | 1.0 |
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 |
report(String message,
String errorType,
Object relatedInformation,
Location location)
Report the desired message in an application specific format. |
Method Detail |
---|
public void
report(String message, String errorType, Object relatedInformation, Location location) throws XMLStreamException
以特定于应用程序的格式报告所需消息。只有警告和非严重错误才应该通过此接口报告。严重错误应作为 XMLStreamException 抛出。
message | 错误消息 |
errorType | 一个定义错误类型的实现 |
relatedInformation | 与错误相关的信息(如果可用) |
location | 错误的位置(如果可用) |
Throws | XMLStreamException: |
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 messageerrorType
- an implementation defined error typerelatedInformation
- information related to the error, if availablelocation
- the location of the error, if available- Throws:
XMLStreamException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!