JavaTM 2 Platform
Standard Ed. 6

java.text
类 ParseException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 java.text.ParseException
所有已实现的接口:
Serializable

public class ParseException
extends Exception

表示解析时出现意外错误。

另请参见:
Exception, Format, FieldPosition, 序列化表格

构造方法摘要
ParseException(String s, int errorOffset)
          构造带指定详细消息和偏移量的 ParseException。
 
方法摘要
 int getErrorOffset()
          返回发现错误的位置。
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

ParseException

public ParseException(String s,
                      int errorOffset)
构造带指定详细消息和偏移量的 ParseException。详细消息是描述此特定异常的字符串。

参数:
s - 详细消息
errorOffset - 解析时发现错误的位置。
方法详细信息

getErrorOffset

public int getErrorOffset()
返回发现错误的位置。


JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only