Hilbert II - Version 0.03.01

org.qedeq.kernel.xml.mapper
Class XmlFilePositionException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.qedeq.kernel.xml.mapper.XmlFilePositionException
All Implemented Interfaces:
Serializable

public final class XmlFilePositionException
extends Exception

Data validation error. Occurs if a set or add method leads to wrong or inconsistent data.

Version:
$Revision: 1.1 $
See Also:
Serialized Form

Constructor Summary
XmlFilePositionException(Exception exception)
          Constructor.
XmlFilePositionException(File file, Exception exception)
          Constructor.
XmlFilePositionException(IOException exception)
          Constructor.
XmlFilePositionException(ModuleDataException exception)
          Constructor.
XmlFilePositionException(SAXException exception)
          Constructor.
XmlFilePositionException(SyntaxException exception)
          Constructor.
XmlFilePositionException(URL url, Exception exception)
          Constructor.
 
Method Summary
 SourcePosition getContext()
          Get context information about error location.
 String getDescription()
          Get detailed error description.
 int getErrorCode()
          Get error code.
 String getLine()
          Get line that is referenced by getContext().
 String getMessage()
           
 SourcePosition getReferenceContext()
          Get additional context information about another associated location.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlFilePositionException

public XmlFilePositionException(ModuleDataException exception)
Constructor.

Parameters:
exception - Exception to wrap.

XmlFilePositionException

public XmlFilePositionException(SyntaxException exception)
Constructor.

Parameters:
exception - Exception to wrap.

XmlFilePositionException

public XmlFilePositionException(URL url,
                                Exception exception)
Constructor.

Parameters:
url - Parsed file.
exception - Exception to wrap.

XmlFilePositionException

public XmlFilePositionException(File file,
                                Exception exception)
Constructor.

Parameters:
file - Parsed file.
exception - Exception to wrap.

XmlFilePositionException

public XmlFilePositionException(Exception exception)
Constructor.

Parameters:
exception - Exception to wrap.

XmlFilePositionException

public XmlFilePositionException(IOException exception)
Constructor.

Parameters:
exception - Exception to wrap.

XmlFilePositionException

public XmlFilePositionException(SAXException exception)
Constructor.

Parameters:
exception - Exception to wrap.
Method Detail

getContext

public final SourcePosition getContext()
Get context information about error location.

Returns:
Error location context.

getReferenceContext

public final SourcePosition getReferenceContext()
Get additional context information about another associated location.

Returns:
Additional error location context.

getErrorCode

public final int getErrorCode()
Get error code.

Returns:
Error code.

getLine

public final String getLine()
Get line that is referenced by getContext().

Returns:
Referenced line.

getMessage

public final String getMessage()

getDescription

public final String getDescription()
Get detailed error description. The first line contains getErrorCode() and getMessage(). The second line contains the local address, the line and column. Third line is the result or getLine(). In the fourth line the row position for the third line is marked.

Returns:
Error description.

Hilbert II - Version 0.03.01

©left GNU General Public Licence
All Rights Reserved.