【The Java™ Tutorials】【Regular Expressions】11. Methods of the PatternSyntaxException Class

  • public String getDescription(): Retrieves the description of the error.
  • public int getIndex(): Retrieves the error index.
  • public String getPattern(): Retrieves the erroneous regular expression pattern.
  • public String getMessage(): Returns a multi-line string containing the description of the syntax error and its index, the erroneous regular-expression pattern, and a visual indication of the error index within the pattern.

你可能感兴趣的:(【The Java™ Tutorials】【Regular Expressions】11. Methods of the PatternSyntaxException Class)