kiwi.text
Class ParsingException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--kiwi.text.ParsingException
- public class ParsingException
- extends Exception
General-purpose parsing exception.
- Version:
- 1.0 (05/98)
- Author:
- Mark Lindner, PING Software Group
- See Also:
- Serialized Form
Method Summary |
int |
getLine()
Get the line number of this exception. |
String |
getMessage()
Get the message of this exception. |
String |
toString()
Convert the parsing exception to a string that contains the message and
line number. |
ParsingException
public ParsingException(String message)
- Construct a new
ParsingException
.
- Parameters:
message
- The exception message.
ParsingException
public ParsingException(String message,
int line)
- Construct a new
ParsingException
.
- Parameters:
message
- The exception message.line
- The line number in the input where the exception occurred.
getLine
public int getLine()
- Get the line number of this exception. If no line number is available,
this method returns 0.
getMessage
public String getMessage()
- Get the message of this exception.
- Overrides:
- getMessage in class Throwable
toString
public String toString()
- Convert the parsing exception to a string that contains the message and
line number.
- Overrides:
- toString in class Throwable