uk.org.ogsadai.common.xml
Class XMLDocumentException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--uk.org.ogsadai.exception.DAIException
                    |
                    +--uk.org.ogsadai.common.xml.XMLParseException
                          |
                          +--uk.org.ogsadai.common.xml.XMLDocumentException
All Implemented Interfaces:
DAIExceptionInformation, java.io.Serializable

public class XMLDocumentException
extends XMLParseException

An exception thrown when parsing an XML document including information on the point in the document causing the error.

Associated with: ErrorID.XML_PARSE_ERROR_WITH_LOCATION.

Author:
The OGSA-DAI Project Team
See Also:
Serialized Form

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
           
private  int mColumn
           
private  java.lang.String mErrorMessage
           
private  boolean mHaveLocation
           
private  int mLine
           
 
Fields inherited from class uk.org.ogsadai.exception.DAIException
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
XMLDocumentException(org.xml.sax.SAXParseException cause)
          Constructor.
 
Method Summary
 int getColumn()
          Get the number of the column at which the problem arose.
 int getLine()
          Get the number of the line at which the problem arose.
 
Methods inherited from class uk.org.ogsadai.exception.DAIException
getErrorID, getExceptionID, getLocalizedMessage, getMessage, getParameters, hasChild, setErrorID, setParameters
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
See Also:
Constant Field Values

mErrorMessage

private java.lang.String mErrorMessage

mLine

private int mLine

mColumn

private int mColumn

mHaveLocation

private boolean mHaveLocation
Constructor Detail

XMLDocumentException

public XMLDocumentException(org.xml.sax.SAXParseException cause)
Constructor.

Parameters:
cause - Cause of the parse exception.
Method Detail

getLine

public int getLine()
Get the number of the line at which the problem arose.

Returns:
line number.

getColumn

public int getColumn()
Get the number of the column at which the problem arose.

Returns:
column number.