Most visited

Recently visited

Added in API level 1

FactoryConfigurationError

public class FactoryConfigurationError
extends Error

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Error
       ↳ javax.xml.parsers.FactoryConfigurationError


当存在解析器工厂配置问题时抛出。 当系统属性中指定的解析器工厂的类无法找到或实例化时,通常会引发此错误。

Summary

Public constructors

FactoryConfigurationError()

创建一个新的 FactoryConfigurationError ,没有详细信息。

FactoryConfigurationError(String msg)

创建一个新的 FactoryConfigurationError ,并指定 String作为错误消息。

FactoryConfigurationError(异常 e)

用给定的 异常错误的基本原因创建一个新的 FactoryConfigurationError 。

FactoryConfigurationError(异常 e, String msg)

用给定的 异常基本原因和详细信息创建一个新的 FactoryConfigurationError 。

Public methods

异常 getException()

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

String getMessage()

返回此错误的消息(如果有)。

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

FactoryConfigurationError

Added in API level 1
FactoryConfigurationError ()

创建一个新的 FactoryConfigurationError ,没有详细信息。

FactoryConfigurationError

Added in API level 1
FactoryConfigurationError (String msg)

创建一个新的 FactoryConfigurationError ,并指定 String作为错误消息。

Parameters
msg String: The error message for the exception.

FactoryConfigurationError

Added in API level 1
FactoryConfigurationError (异常 e)

使用给定的 异常错误的基本原因创建一个新的 FactoryConfigurationError 。

Parameters
e 异常: The exception to be encapsulated in a FactoryConfigurationError.

FactoryConfigurationError

Added in API level 1
FactoryConfigurationError (异常 e, 
                String msg)

用给定的 异常基本原因和详细信息创建一个新的 FactoryConfigurationError 。

Parameters
e 异常: The exception to be encapsulated in a FactoryConfigurationError
msg String: The detail message.

Public methods

getException

Added in API level 1
异常 getException ()

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

Returns
异常 The encapsulated exception, or null if there is none.

getMessage

Added in API level 1
String getMessage ()

返回此错误的消息(如果有)。 如果这个异常没有消息,并且有封装异常,那么该异常的消息(如果存在)将被返回。 否则将返回封装异常的名称。

Returns
String The error message.

Hooray!