org.ceryle.util
Class ParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.ceryle.util.ProcessException
              extended by 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

Field Summary
 
Fields inherited from class org.ceryle.util.ProcessException
exception, isMessageId, messageId, param1, param2, param3
 
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.
 
Methods inherited from class org.ceryle.util.ProcessException
getException, getMessage, getMessageId
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.