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.