Build 1.0_r1(from source)

javax.xml.parsers
Class FactoryConfigurationError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by javax.xml.parsers.FactoryConfigurationError
All Implemented Interfaces:
Serializable

public class FactoryConfigurationError
extends Error

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

See Also:
Serialized Form

Constructor Summary
FactoryConfigurationError()
          Creates a new FactoryConfigurationError with no error message an 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.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FactoryConfigurationError

public FactoryConfigurationError()
Creates a new FactoryConfigurationError with no error message an no cause.


FactoryConfigurationError

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.

FactoryConfigurationError

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.

FactoryConfigurationError

public FactoryConfigurationError(String message)
Creates a new FactoryConfigurationError with a given error message and no cause.

Parameters:
message - The error message.
Method Detail

getException

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.

getMessage

public String getMessage()
Returns the message of the error, in case there is one.

Overrides:
getMessage in class Throwable
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() for that is returned. Otherwise, null is returned.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature