org.pfsw.text
Class MatchRuleParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.pfsw.text.MatchRuleException
              extended by org.pfsw.text.MatchRuleParseException
All Implemented Interfaces:
java.io.Serializable

public class MatchRuleParseException
extends MatchRuleException

This exception is used for all parsing errors of MatchRule parser classes.

See Also:
Serialized Form

Constructor Summary
MatchRuleParseException()
          Initialize the new instance with default values.
MatchRuleParseException(java.lang.String message)
          Initialize the new instance with with a message.
MatchRuleParseException(java.lang.String message, java.lang.Object... args)
          Initialize the new instance with with a message.
 
Method Summary
 java.lang.String getParseString()
          Returns the string in which caused the parsing exception.
 int getPosition()
          Returns the position in the string where the exception was caused.
protected  void setParseString(java.lang.String newValue)
           
protected  void setPosition(int pos)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

MatchRuleParseException

public MatchRuleParseException()
Initialize the new instance with default values.


MatchRuleParseException

public MatchRuleParseException(java.lang.String message)
Initialize the new instance with with a message.


MatchRuleParseException

public MatchRuleParseException(java.lang.String message,
                               java.lang.Object... args)
Initialize the new instance with with a message.

Method Detail

getPosition

public int getPosition()
Returns the position in the string where the exception was caused.


getParseString

public java.lang.String getParseString()
Returns the string in which caused the parsing exception.


setPosition

protected void setPosition(int pos)

setParseString

protected void setParseString(java.lang.String newValue)