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:
- java.io.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
|
Constructor Summary |
XMLParsingException(java.lang.String msg)
Deprecated. |
XMLParsingException(XMLAdapter origin,
org.apache.axiom.om.OMElement erroneousElement,
java.lang.String msg)
Creates a new exception for a parsing error that occured in an AXIOM-based parsing method. |
XMLParsingException(javax.xml.stream.XMLStreamReader xmlReader,
java.lang.String msg)
Creates a new exception for a parsing error that occured in a StAX-based parsing method. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
XMLParsingException
@Deprecated
public XMLParsingException(java.lang.String msg)
- Deprecated.
XMLParsingException
public XMLParsingException(javax.xml.stream.XMLStreamReader xmlReader,
java.lang.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,
java.lang.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 java.lang.String getMessage()
- Overrides:
getMessage in class XMLProcessingException
Copyright © 2011. All Rights Reserved.