Class RegExpPatternError

  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by com.raelity.text.RegExpPatternError
All Implemented Interfaces:

public class RegExpPatternError
extends Error

This exception occurs when a regular expression pattern has an error and will not compile. It is thrown by the RegExp adaptor if it catches an exception from the underlying implementation. Unlike most exceptions it has a field of type Throwable. This field is the implementation dependant exception. The printStackTrace methods are overloaded to print the machine dependant exception, since it may provide detailed information about the problem. Note that this class is derived from Error, if a regular expression is built from user input this should be caught.

See Also:
RegExp.compile(java.lang.String), Serialized Form

Method Summary
 int getIndex()
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

Method Detail


public int getIndex()