Android
javax.xml.parsers
public class

javax.xml.parsers.FactoryConfigurationError

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

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

Summary

Public Constructors

            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.

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.
Methods inherited from class java.lang.Throwable
Methods inherited from class java.lang.Object

Details

Public Constructors

public FactoryConfigurationError()

Creates a new FactoryConfigurationError with no error message an 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() for that is returned. Otherwise, null is returned.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48