| 
JavaTM 2 Platform Standard Ed. 5.0  | 
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
java.util.regex.PatternSyntaxException
public class PatternSyntaxException
抛出未经检查的异常,表明正则表达式模式中的语法错误。
| 构造方法摘要 | |
|---|---|
PatternSyntaxException(String desc,
                       String regex,
                       int index)
构造此类的新实例。  | 
|
| 方法摘要 | |
|---|---|
 String | 
getDescription()
检索错误的描述。  | 
 int | 
getIndex()
检索错误的索引。  | 
 String | 
getMessage()
返回多行字符串,包含语法错误及其索引的描述、错误的正则表达式模式和模式中错误索引的可视化指示。  | 
 String | 
getPattern()
检索错误的正则表达式模式。  | 
| 从类 java.lang.Throwable 继承的方法 | 
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString | 
| 从类 java.lang.Object 继承的方法 | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| 构造方法详细信息 | 
|---|
public PatternSyntaxException(String desc,
                              String regex,
                              int index)
desc - 错误的描述regex - 错误的模式index - 错误模式中的近似索引;如果索引未知,则为 -1| 方法详细信息 | 
|---|
public int getIndex()
public String getDescription()
public String getPattern()
public String getMessage()
Throwable 中的 getMessage
  | 
JavaTM 2 Platform Standard Ed. 5.0  | 
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。