Class PatternSyntaxException

All Implemented Interfaces:
Serializable

public class PatternSyntaxException extends RuntimeException
An exception thrown by the parser if the pattern was invalid. Following java.util.regex.PatternSyntaxException, this is an unchecked exception.
See Also:
  • Constructor Details

    • PatternSyntaxException

      public PatternSyntaxException(String error, String input)
    • PatternSyntaxException

      public PatternSyntaxException(String error)
  • Method Details

    • getIndex

      public int getIndex()
      Retrieves the error index.
      Returns:
      The approximate index in the pattern of the error, or -1 if the index is not known
    • getDescription

      public String getDescription()
      Retrieves the description of the error.
      Returns:
      The description of the error
    • getPattern

      public String getPattern()
      Retrieves the erroneous regular-expression pattern.
      Returns:
      The erroneous pattern