APIdia Launch Partner
Top Description Methods
javax.xml.stream

public Interface XMLReporter


This interface is used to report non-fatal errors. Only warnings should be echoed through this interface.
Author
Copyright (c) 2009 by Oracle Corporation. All Rights Reserved.
Since
1.6
Version
1.0

Method Summary

Modifier and TypeMethod and Description
public void
report(String
the error message
message
,
String
an implementation defined error type
errorType
,
Object
information related to the error, if available
relatedInformation
,
Location
the location of the error, if available
location
)

Report the desired message in an application specific format.

Method Detail

reportback to summary
public 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:String

the error message

errorType:String

an implementation defined error type

relatedInformation:Object

information related to the error, if available

location:Location

the location of the error, if available

Exceptions
XMLStreamException:
if an error occurs