com.jinsight.jetchart
Class XMLParseException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--com.jinsight.jetchart.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.3 $
$Date: 2002/01/03 20:19:36 $
- See Also:
- Serialized Form
Field Summary |
static int |
NO_LINE
Indicates that no line number has been associated with this exception. |
Constructor Summary |
XMLParseException(java.lang.String name,
int lineNr,
java.lang.String message)
Creates an exception. |
XMLParseException(java.lang.String name,
java.lang.String message)
Creates an exception. |
Method Summary |
int |
getLineNr()
Where the error occurred, or NO_LINE 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 |
NO_LINE
public static final int NO_LINE
- Indicates that no line number has been associated with this exception.
XMLParseException
public XMLParseException(java.lang.String name,
java.lang.String message)
- Creates an exception.
- Parameters:
name
- The name of the element where the error is located.message
- A message describing what went wrong.
- Preconditions:
-
- Postconditions:
-
XMLParseException
public XMLParseException(java.lang.String name,
int lineNr,
java.lang.String message)
- Creates an exception.
- Parameters:
name
- The name of the element where the error is located.lineNr
- The number of the line in the input.message
- A message describing what went wrong.
- Preconditions:
-
message != null
lineNr > 0
- Postconditions:
-
getLineNr
public int getLineNr()
- Where the error occurred, or
NO_LINE
if the line number is
unknown.