Class PatternSyntaxException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by java.util.regex.PatternSyntaxException
                      extended by info.codesaway.util.regex.PatternSyntaxException
All Implemented Interfaces:

public class PatternSyntaxException
extends java.util.regex.PatternSyntaxException

Unchecked exception thrown to indicate a syntax error in a regular-expression pattern.

This class is an extension of Java's PatternSyntaxException class. Javadocs were copied and appended with the added functionality.

See Also:
Serialized Form

Constructor Summary
PatternSyntaxException(java.lang.String desc, java.lang.String regex, int index)
          Constructs a new instance of this class.
Method Summary
Methods inherited from class java.util.regex.PatternSyntaxException
getDescription, getIndex, getMessage, getPattern
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public PatternSyntaxException(java.lang.String desc,
                              java.lang.String regex,
                              int index)
Constructs a new instance of this class.

desc - A description of the error
regex - The erroneous pattern
index - The approximate index in the pattern of the error, or -1 if the index is not known