org.deegree.commons.xml
Class XMLParsingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.deegree.commons.xml.XMLProcessingException
                  extended by 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

Constructor Summary
XMLParsingException(String msg)
          Deprecated. 
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.
XMLParsingException(XMLStreamReader xmlReader, String msg)
          Creates a new exception for a parsing error that occured in a StAX-based parsing method.
 
Method Summary
 String getMessage()
           
 
Methods inherited from class org.deegree.commons.xml.XMLProcessingException
toString
 
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
 

Constructor Detail

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 event
msg - 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 error
msg - error information that explains the problem
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class XMLProcessingException


Copyright © 2011. All Rights Reserved.