public class

FactoryConfigurationError

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

Class Overview

Represents an error that occurred during the configuration of parser factory.

Summary

Public Constructors
FactoryConfigurationError()
Creates a new FactoryConfigurationError with no error message and no cause.
FactoryConfigurationError(Exception cause)
Creates a new FactoryConfigurationError with no error message and a given cause.
FactoryConfigurationError(Exception cause, String message)
Creates a new FactoryConfigurationError with a given error message and cause.
FactoryConfigurationError(String message)
Creates a new FactoryConfigurationError with a given error message and no cause.
Public Methods
Exception getException()
Returns the cause of the error, in case there is one.
String getMessage()
Returns the message of the error, in case there is one.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public FactoryConfigurationError ()

Creates a new FactoryConfigurationError with no error message and no cause.

public FactoryConfigurationError (Exception cause)

Creates a new FactoryConfigurationError with no error message and a given cause.

Parameters
cause the cause of the error. Note that the nested exception will be stored in a special attribute, and can be queried using the getException() method. It does not use the facility the Exception class provides for storing nested exceptions, since the XML API predates that facility.

public FactoryConfigurationError (Exception cause, String message)

Creates a new FactoryConfigurationError with a given error message and cause.

Parameters
cause the cause of the error. Note that the nested exception will be stored in a special attribute, and can be queried using the getException() method. It does not use the facility the Exception class provides for storing nested exceptions, since the XML API predates that facility.
message The error message.

public FactoryConfigurationError (String message)

Creates a new FactoryConfigurationError with a given error message and no cause.

Parameters
message the error message.

Public Methods

public Exception getException ()

Returns the cause of the error, in case there is one.

Returns
  • the exception that caused the error, or null if none is set.

public String getMessage ()

Returns the message of the error, in case there is one.

Returns
  • the message. If an explicit error message has been assigned to the exception, this one is returned. If not, and there is an underlying exception (the cause), then the result of invoking toString() on that object is returned. Otherwise, null is returned.