JavaTM Platform
Standard Ed. 6

javax.xml.parsers
类 FactoryConfigurationError

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Error
          继承者 javax.xml.parsers.FactoryConfigurationError
所有已实现的接口:
Serializable

public class FactoryConfigurationError
extends Error

当解析器工厂的配置存在问题时抛出该异常。当找不到系统属性中指定的解析器工厂的类时,或者该类不能被实例化时,通常抛出此错误。

另请参见:
序列化表格

构造方法摘要
FactoryConfigurationError()
          创建一个新的不带详细消息的 FactoryConfigurationError
FactoryConfigurationError(Exception e)
          使用错误的给定 Exception 基本原因创建一个新的 FactoryConfigurationError
FactoryConfigurationError(Exception e, String msg)
          使用给定 Exception 的基本原因和详细消息创建一个新的 FactoryConfigurationError
FactoryConfigurationError(String msg)
          创建一个新的 FactoryConfigurationError,并将 String 指定为一个错误消息。
 
方法摘要
 Exception getException()
          返回引发此异常的实际异常(如果有)。
 String getMessage()
          返回此错误的消息(如果有)。
 
从类 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
 

构造方法详细信息

FactoryConfigurationError

public FactoryConfigurationError()
创建一个新的不带详细消息的 FactoryConfigurationError


FactoryConfigurationError

public FactoryConfigurationError(String msg)
创建一个新的 FactoryConfigurationError,并将 String 指定为一个错误消息。

参数:
msg - 该异常的错误消息。

FactoryConfigurationError

public FactoryConfigurationError(Exception e)
使用错误的给定 Exception 基本原因创建一个新的 FactoryConfigurationError

参数:
e - FactoryConfigurationError 中要封装的异常。

FactoryConfigurationError

public FactoryConfigurationError(Exception e,
                                 String msg)
使用给定 Exception 的基本原因和详细消息创建一个新的 FactoryConfigurationError

参数:
e - FactoryConfigurationError 中要封装的异常
msg - 详细消息。
方法详细信息

getMessage

public String getMessage()
返回此错误的消息(如果有)。如果不存在该异常的消息,且存在一个封装的异常,则将返回该异常的消息(如果存在)。否则,封装异常的名称将被返回。

覆盖:
Throwable 中的 getMessage
返回:
错误消息。

getException

public Exception getException()
返回引发此异常的实际异常(如果有)。

返回:
封装的异常,如果没有,则返回 null。

JavaTM Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策