com.xfactorstudio.ahawasi
Class XMLParseException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--com.xfactorstudio.ahawasi.XMLParseException
- All Implemented Interfaces:
- java.io.Serializable
- public class XMLParseException
- extends java.lang.RuntimeException
This Object has been adapted from a prior work. No changes have been made,
other than adding it to the com.xfactorstudio.ahawasi package.
An XMLParseException is thrown when an error occures while parsing an XML
string.
$Revision: 1.4 $
$Date: 2000/08/09 20:35:07 $
- Version:
- 1.6
- Author:
- Marc De Scheemaecker
<Marc.DeScheemaecker@advalvas.be>
- 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, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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.
getLineNr
public int getLineNr()
- Where the error occurred, or -1 if the line number is unknown.