public class ValidationException extends XPathException
XPathException.Circularity| Constructor and Description |
|---|
ValidationException(Exception exception)
Creates a new ValidationException with the given nested
exception.
|
ValidationException(String message,
Exception exception)
Creates a new ValidationException with the given message
and nested exception.
|
ValidationException(String message,
Location locator)
Create a new ValidationException from a message and a Locator.
|
ValidationException(ValidationFailure failure)
Create a new ValidationException that wraps a ValidationFailure
|
| Modifier and Type | Method and Description |
|---|---|
AbsolutePath |
getAbsolutePath()
Get the location of the error as a structured path object
|
String |
getMessage()
Returns the detail message string of this throwable.
|
NodeInfo |
getNode() |
String |
getPath()
Get the location of the error in terms of a path expressed as a string
|
ValidationFailure |
getValidationFailure()
Get a ValidationFailure object containing information from this ValidationException
|
String |
toString()
Returns the String representation of this Exception
|
getErrorCodeLocalPart, getErrorCodeNamespace, getErrorCodeQName, getErrorObject, getFailingExpression, getHostLanguage, getLocator, getXPathContext, hasBeenReported, isGlobalError, isReportableStatically, isStaticError, isSyntaxError, isTypeError, makeXPathException, maybeSetContext, maybeSetErrorCode, maybeSetFailingExpression, maybeSetLocation, setErrorCode, setErrorCodeQName, setErrorObject, setFailingExpression, setHasBeenReported, setHostLanguage, setIsGlobalError, setIsStaticError, setIsSyntaxError, setIsTypeError, setLocation, setXPathContextgetCause, getException, getLocationAsString, getMessageAndLocation, initCause, printStackTrace, printStackTrace, printStackTrace, setLocatoraddSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, setStackTracepublic ValidationException(Exception exception)
exception - the nested exceptionpublic ValidationException(String message, Exception exception)
message - the detail message for this exceptionexception - the nested exceptionpublic ValidationException(String message, Location locator)
message - The error or warning message.locator - The locator object for the error or warning.public ValidationException(ValidationFailure failure)
failure - the ValidationFailure to be wrappedpublic String getMessage()
getMessage in class ThrowableThrowable instance
(which may be null).public ValidationFailure getValidationFailure()
public String toString()
public NodeInfo getNode()
public String getPath()
public AbsolutePath getAbsolutePath()