FileDocCategorySizeDatePackage
FactoryConfigurationError.javaAPI DocAndroid 1.5 API4079Wed May 06 22:41:06 BST 2009javax.xml.parsers

FactoryConfigurationError

public class FactoryConfigurationError extends Error
Represents an error that occurred during the configuration of parser factory.
since
Android 1.0

Fields Summary
private Exception
cause
The nested exception that caused this exception. Note that the nested exception will be stored in a special attribute, and can be queried using the {@link #getException()} method. It does not use the facility the {@link Exception} class provides for storing nested exceptions, since the XML API predates that facility.
Constructors Summary
public FactoryConfigurationError()
Creates a new {@code FactoryConfigurationError} with no error message and no cause.

since
Android 1.0

        super();
    
public FactoryConfigurationError(Exception cause)
Creates a new {@code FactoryConfigurationError} with no error message and a given cause.

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

        super();
        this.cause = cause;
    
public FactoryConfigurationError(Exception cause, String message)
Creates a new {@code FactoryConfigurationError} with a given error message and cause.

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

        super(message);
        this.cause = cause;
    
public FactoryConfigurationError(String message)
Creates a new {@code FactoryConfigurationError} with a given error message and no cause.

param
message the error message.
since
Android 1.0

        super(message);
    
Methods Summary
public java.lang.ExceptiongetException()
Returns the cause of the error, in case there is one.

return
the exception that caused the error, or {@code null} if none is set.
since
Android 1.0

        return cause;
    
public java.lang.StringgetMessage()
Returns the message of the error, in case there is one.

return
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 {@link #toString()} on that object is returned. Otherwise, {@code null} is returned.
since
Android 1.0

        String message = super.getMessage();

        if (message != null) {
            return message;
        } else if (cause != null) {
            return cause.toString();
        } else {
            return null;
        }