-
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
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
相关阅读更多精彩内容
- 对于小说中的主角查尔斯·斯特里克兰我不敢过多的评判,我不能苟同但又不得不佩服他对自己理想的追求抑或是将自己内...
- 在“双赢思维”这一章的引导词中讲道: “双赢者把生活看作一个合作的舞台,而不是一个角斗场。其实世界之大,人人都有足...