/** * Get a ValidationFailure object containing information from this ValidationException * @return a ValidationFailure object */ public ValidationFailure getValidationFailure() { if (failure != null) { return failure; } else { ValidationFailure failure = new ValidationFailure(getMessage()); failure.setErrorCodeQName(getErrorCodeQName()); failure.setLocator(getLocator()); return failure; } }
/** * Get a ValidationFailure object containing information from this ValidationException * @return a ValidationFailure object */ public ValidationFailure getValidationFailure() { if (failure != null) { return failure; } else { ValidationFailure failure = new ValidationFailure(getMessage()); failure.setErrorCodeQName(getErrorCodeQName()); failure.setLocator(getLocator()); return failure; } }
} catch (ValidationException e) { XPathException err = XPathException.makeXPathException(e); err.setErrorCodeQName(e.getErrorCodeQName()); err.setIsTypeError(true); throw err;
} catch (ValidationException e) { XPathException err = XPathException.makeXPathException(e); err.setErrorCodeQName(e.getErrorCodeQName()); err.setIsTypeError(true); throw err;
} catch (ValidationException e) { XPathException err = XPathException.makeXPathException(e); err.setErrorCodeQName(e.getErrorCodeQName()); err.setXPathContext(context); err.setLocation(getLocation());
} catch (ValidationException e) { XPathException err = XPathException.makeXPathException(e); err.setErrorCodeQName(e.getErrorCodeQName()); err.setXPathContext(context); err.setLocation(getLocation());