org.deegree.commons.xml
Class XMLParsingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.deegree.commons.xml.XMLProcessingException
org.deegree.commons.xml.XMLParsingException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- EventTime100XMLAdapter.EventTimeXMLParsingException, GetObservation100XMLAdapter.ResultFilterException
public class XMLParsingException
- extends XMLProcessingException
Thrown when a syntactic or semantic error has been encountered during the parsing process in an XMLAdapter.
Helps to determine the error in the XML document by returning file name and position (column, line, character offset)
information in getMessage() when they are available.
- Version:
- $Revision:$, $Date:$
- Author:
- Markus Schneider , Oliver Tonnhofer , last edited by: $Author:$
- See Also:
- Serialized Form
XMLParsingException
@Deprecated
public XMLParsingException(String msg)
- Deprecated.
XMLParsingException
public XMLParsingException(XMLStreamReader xmlReader,
String msg)
- Creates a new exception for a parsing error that occured in a StAX-based parsing method.
- Parameters:
xmlReader - XMLStreamReader that encountered the erroneous eventmsg - error information that explains the problem
XMLParsingException
public XMLParsingException(XMLAdapter origin,
org.apache.axiom.om.OMElement erroneousElement,
String msg)
- Creates a new exception for a parsing error that occured in an AXIOM-based parsing method.
- Parameters:
origin - XMLAdapter that determined the error (usually use this)erroneousElement - element that contains the errormsg - error information that explains the problem
getMessage
public String getMessage()
- Overrides:
getMessage in class XMLProcessingException
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>