public class ValidationException extends XPathException
XPathException.Circularity
Constructor and Description |
---|
ValidationException(java.lang.Exception exception)
Creates a new ValidationException with the given nested
exception.
|
ValidationException(java.lang.String message,
java.lang.Exception exception)
Creates a new ValidationException with the given message
and nested exception.
|
ValidationException(java.lang.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
|
java.lang.String |
getMessage()
Returns the detail message string of this throwable.
|
NodeInfo |
getNode() |
java.lang.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
|
java.lang.String |
toString()
Returns the String representation of this Exception
|
getErrorCodeLocalPart, getErrorCodeNamespace, getErrorCodeQName, getErrorObject, getHostLanguage, getLocator, getXPathContext, hasBeenReported, isGlobalError, isReportableStatically, isStaticError, isSyntaxError, isTypeError, makeXPathException, maybeSetContext, maybeSetErrorCode, maybeSetLocation, setErrorCode, setErrorCodeQName, setErrorObject, setHasBeenReported, setHostLanguage, setIsGlobalError, setIsStaticError, setIsSyntaxError, setIsTypeError, setLocation, setXPathContext
getCause, getException, getLocationAsString, getMessageAndLocation, initCause, printStackTrace, printStackTrace, printStackTrace, setLocator
public ValidationException(java.lang.Exception exception)
exception
- the nested exceptionpublic ValidationException(java.lang.String message, java.lang.Exception exception)
message
- the detail message for this exceptionexception
- the nested exceptionpublic ValidationException(java.lang.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 java.lang.String getMessage()
getMessage
in class java.lang.Throwable
Throwable
instance
(which may be null
).public ValidationFailure getValidationFailure()
public java.lang.String toString()
toString
in class java.lang.Throwable
public NodeInfo getNode()
public java.lang.String getPath()
public AbsolutePath getAbsolutePath()
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.