info.codesaway.util.regex
Class PatternSyntaxException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
java.util.regex.PatternSyntaxException
info.codesaway.util.regex.PatternSyntaxException
- All Implemented Interfaces:
- java.io.Serializable
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. |
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 |
PatternSyntaxException
public PatternSyntaxException(java.lang.String desc,
java.lang.String regex,
int index)
- Constructs a new instance of this class.
- Parameters:
desc
- A description of the errorregex
- The erroneous patternindex
- The approximate index in the pattern of the error,
or -1 if the index is not known