org.japano.util
Class XMLParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.japano.util.XMLParseException
All Implemented Interfaces:
java.io.Serializable

public class XMLParseException
extends java.lang.RuntimeException

An XMLParseException is thrown when an error occures while parsing an XML string.

$Revision: 1.1.1.1 $
$Date: 2005/01/16 18:15:46 $

Version:
$Name: $, $Revision: 1.1.1.1 $
Author:
Marc De Scheemaecker
See Also:
XMLElement, Serialized Form

Constructor Summary
XMLParseException(java.lang.String tag, int lineNr, java.lang.String message)
          Creates an exception.
XMLParseException(java.lang.String tag, java.lang.String message)
          Creates an exception.
 
Method Summary
 int getLineNr()
          Where the error occurred, or -1 if the line number is unknown.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

XMLParseException

public XMLParseException(java.lang.String tag,
                         java.lang.String message)
Creates an exception.

Parameters:
tag - The name of the tag where the error is located.
message - A message describing what went wrong.

XMLParseException

public XMLParseException(java.lang.String tag,
                         int lineNr,
                         java.lang.String message)
Creates an exception.

Parameters:
tag - The name of the tag where the error is located.
lineNr - The number of the line in the input.
message - A message describing what went wrong.
Method Detail

getLineNr

public int getLineNr()
Where the error occurred, or -1 if the line number is unknown.