Class ParameterizedPatternSyntaxException

All Implemented Interfaces:
Serializable

public class ParameterizedPatternSyntaxException extends IllegalArgumentException
Thrown when a syntax error is found in a ParameterizedPattern.
Author:
Lincoln Baxter, III
See Also:
  • Constructor Details

    • ParameterizedPatternSyntaxException

      public ParameterizedPatternSyntaxException(String message, String pattern, int index)
      Parameters:
      message - The error message
      pattern - The pattern that contains errors
      index - The location of the error, or -1 if location is unknown
  • Method Details

    • getIndex

      public int getIndex()
      Returns the index at which the error is located in the pattern, or -1 if the location is not known.
    • getPattern

      public String getPattern()
      Returns the pattern containing errors.
    • getMessage

      public String getMessage()
      Returns a string containing the description of the syntax error and its location, the erroneous parameterized pattern string, and a visual location of the error index within the pattern (if possible.)
      Overrides:
      getMessage in class Throwable