-
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
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读更多精彩内容
- 在“双赢思维”这一章的引导词中讲道: “双赢者把生活看作一个合作的舞台,而不是一个角斗场。其实世界之大,人人都有足...