org.apache.commons.jxpath

Class JXPathContextFactoryConfigurationError


public class JXPathContextFactoryConfigurationError
extends Error

Thrown when a problem with configuration with the JXPathContextFactories exists. This error will typically be thrown when the class of a factory specified in the system properties cannot be found or instantiated.
Version:
$Revision: 1.5 $ $Date: 2004/02/29 14:17:42 $
Author:
Dmitri Plotnikov

Constructor Summary

JXPathContextFactoryConfigurationError()
Create a new JXPathContextFactoryConfigurationError with no detail mesage.
JXPathContextFactoryConfigurationError(Exception e)
Create a new JXPathContextFactoryConfigurationError with a given Exception base cause of the error.
JXPathContextFactoryConfigurationError(Exception e, String msg)
Create a new JXPathContextFactoryConfigurationError with the given Exception base cause and detail message.
JXPathContextFactoryConfigurationError(String msg)
Create a new JXPathContextFactoryConfigurationError with the String specified as an error message.

Method Summary

Exception
getException()
Return the actual exception (if any) that caused this exception to be raised.
String
getMessage()
Return the message (if any) for this error .

Constructor Details

JXPathContextFactoryConfigurationError

public JXPathContextFactoryConfigurationError()
Create a new JXPathContextFactoryConfigurationError with no detail mesage.

JXPathContextFactoryConfigurationError

public JXPathContextFactoryConfigurationError(Exception e)
Create a new JXPathContextFactoryConfigurationError with a given Exception base cause of the error.
Parameters:
e - The exception to be encapsulated in a JXPathContextFactoryConfigurationError.

JXPathContextFactoryConfigurationError

public JXPathContextFactoryConfigurationError(Exception e,
                                              String msg)
Create a new JXPathContextFactoryConfigurationError with the given Exception base cause and detail message.
Parameters:
e - The exception to be encapsulated in a JXPathContextFactoryConfigurationError
msg - The detail message.

JXPathContextFactoryConfigurationError

public JXPathContextFactoryConfigurationError(String msg)
Create a new JXPathContextFactoryConfigurationError with the String specified as an error message.
Parameters:
msg - The error message for the exception.

Method Details

getException

public Exception getException()
Return the actual exception (if any) that caused this exception to be raised.
Returns:
The encapsulated exception, or null if there is none.

getMessage

public String getMessage()
Return the message (if any) for this error . If there is no message for the exception and there is an encapsulated exception then the message of that exception will be returned.
Returns:
The error message.