public class PatternSyntaxException extends IllegalArgumentException
Constructor and Description |
---|
PatternSyntaxException(String desc, String regex, int index)
构造一个这个类的新实例。
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
检索错误的描述。
|
int |
getIndex()
检索错误索引。
|
String |
getMessage()
返回一个多行字符串,其中包含语法错误及其索引的描述,错误的正则表达式模式以及模式中错误索引的可视指示。
|
String |
getPattern()
检索错误的正则表达式模式。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public int getIndex()
public String getDescription()
public String getPattern()
public String getMessage()
getMessage
在
Throwable
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.