Package org.jvnet.lafplugin
Class XMLParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.jvnet.lafplugin.XMLParseException
-
- All Implemented Interfaces:
java.io.Serializable
public class XMLParseException extends java.lang.RuntimeExceptionAn XMLParseException is thrown when an error occures while parsing an XML string.$Revision: 1.2 $
$Date: 2006/03/02 16:40:02 $- See Also:
nanoxml.XMLElement, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intNO_LINEIndicates that no line number has been associated with this exception.
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLineNr()Where the error occurred, orNO_LINEif the line number is unknown.
-
-
-
Field Detail
-
NO_LINE
public static final int NO_LINE
Indicates that no line number has been associated with this exception.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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:
-
message != null
- Postconditions:
-
- getLineNr() => NO_LINE
-
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 != nulllineNr > 0
- Postconditions:
-
- getLineNr() => lineNr
-
-