FactoryConfigurationErrorpublic class FactoryConfigurationError extends Error Represents an error that occurred during the configuration of parser factory. |
Fields Summary |
---|
private Exception | causeThe 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.
super();
| public FactoryConfigurationError(Exception cause)Creates a new {@code FactoryConfigurationError} with no error message and
a given cause.
super();
this.cause = cause;
| public FactoryConfigurationError(Exception cause, String message)Creates a new {@code FactoryConfigurationError} with a given error
message and cause.
super(message);
this.cause = cause;
| public FactoryConfigurationError(String message)Creates a new {@code FactoryConfigurationError} with a given error
message and no cause.
super(message);
|
Methods Summary |
---|
public java.lang.Exception | getException()Returns the cause of the error, in case there is one.
return cause;
| public java.lang.String | getMessage()Returns the message of the error, in case there is one.
String message = super.getMessage();
if (message != null) {
return message;
} else if (cause != null) {
return cause.toString();
} else {
return null;
}
|
|