org.ceryle.util
Class ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.ceryle.util.ProcessException
org.ceryle.util.ParseException
- All Implemented Interfaces:
- Serializable
public class ParseException
- extends ProcessException
An class for exceptions thrown during parsing.
- Since:
- JDK1.3
- Version:
- $Id: ParseException.java,v 3.3 2007-06-15 12:09:57 altheim Exp $
- Author:
- Murray Altheim
- See Also:
ProcessException,
Serialized Form
|
Constructor Summary |
ParseException(int line,
String messageId)
Constructor for ParseException including location information. |
ParseException(int line,
String messageId,
String param1)
Constructor for ParseException with a MessageId and one parameter,
including location information. |
ParseException(int line,
String messageId,
String param1,
String param2)
Constructor for ParseException with a MessageId and two parameters,
including location information. |
|
Method Summary |
int |
getLine()
Returns the line number at or close to where the exception occurred,
-1 if this has not been set. |
ParseException
public ParseException(int line,
String messageId)
- Constructor for ParseException including location information.
- Parameters:
line - The line on which the error seems to have occurred.messageId - The unique message identifier.- See Also:
MessageId,
Utilities
ParseException
public ParseException(int line,
String messageId,
String param1)
- Constructor for ParseException with a MessageId and one parameter,
including location information.
- Parameters:
line - The line on which the error seems to have occurred.messageId - The unique message identifier.param1 - A parameter string to be inserted at %1.- See Also:
MessageId,
Utilities
ParseException
public ParseException(int line,
String messageId,
String param1,
String param2)
- Constructor for ParseException with a MessageId and two parameters,
including location information.
- Parameters:
line - The line on which the error seems to have occurred.messageId - The unique message identifier.param1 - A parameter string to be inserted at %1.param2 - A parameter string to be inserted at %2.- See Also:
MessageId,
Utilities
getLine
public int getLine()
- Returns the line number at or close to where the exception occurred,
-1 if this has not been set.
- Overrides:
getLine in class ProcessException
- Returns:
- The exception's line number as an int.
The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.