Package org.apache.commons.jxpath
Class JXPathException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.commons.jxpath.JXPathException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JXPathAbstractFactoryException,JXPathFunctionNotFoundException,JXPathInvalidAccessException,JXPathInvalidSyntaxException,JXPathNotFoundException,JXPathTypeConversionException
Thrown in various situations by JXPath; may contain a nested exception.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newJXPathExceptionwith no detail mesage.JXPathException(String msg) Constructs a newJXPathExceptionwith theStringspecified as an error message.JXPathException(String msg, Throwable cause) Constructs a newJXPathExceptionwith the givenExceptionbase cause and detail message.JXPathException(Throwable cause) Constructs a newJXPathExceptionwith a givenThrowablebase cause of the error. -
Method Summary
Modifier and TypeMethodDescriptionGets the actual exception (if any) that caused this exception to be raised.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JXPathException
public JXPathException()Constructs a newJXPathExceptionwith no detail mesage. -
JXPathException
Constructs a newJXPathExceptionwith theStringspecified as an error message.- Parameters:
msg- The error message for the exception.
-
JXPathException
Constructs a newJXPathExceptionwith the givenExceptionbase cause and detail message.- Parameters:
msg- The detail message.cause- The exception to be encapsulated in a JXPathException
-
JXPathException
Constructs a newJXPathExceptionwith a givenThrowablebase cause of the error.- Parameters:
cause- The exception to be encapsulated in a JXPathException.
-
-
Method Details
-
getException
Gets the actual exception (if any) that caused this exception to be raised.- Returns:
- The encapsulated exception, or null if there is none.
-