Examples of maybeSetLocation()


Examples of client.net.sf.saxon.ce.trans.XPathException.maybeSetLocation()

            controller.addUnavailableOutputDestination(documentKey);
            return getFragment(newdoc, fragmentId, c);

        } catch (XPathException err) {
            pool.markUnavailable(documentKey);
            err.maybeSetLocation(locator);
            String code = (err.getCause() instanceof URI.URISyntaxException) ? "FODC0005" : "FODC0002";
            err.maybeSetErrorCode(code);
            controller.recoverableError(err);
            return null;
        }
View Full Code Here

Examples of client.net.sf.saxon.ce.trans.XPathException.maybeSetLocation()

            return StringValue.makeStringValue(res);
        } catch (XPathException err) {
            XPathException de = new XPathException(err);
            de.setErrorCode("FORX0002");
            de.setXPathContext(c);
            de.maybeSetLocation(getSourceLocator());
            throw de;
        }


    }
View Full Code Here

Examples of client.net.sf.saxon.ce.trans.XPathException.maybeSetLocation()

                    new QNameValue(parts[0], uri, parts[1], BuiltInAtomicType.QNAME, true));
        } catch (QNameException e) {
            dynamicError(e.getMessage(), "FOCA0002", null);
            return null;
        } catch (XPathException err) {
            err.maybeSetLocation(getSourceLocator());
            throw err;
        }
    }

    /**
 
View Full Code Here

Examples of client.net.sf.saxon.ce.trans.XPathException.maybeSetLocation()

            e.maybeSetLocation(this.getSourceLocator());
            e.maybeSetContext(context);
            throw e;
      } catch(Exception e) {
        XPathException xe = new XPathException("Exception in ixsl:" + localName + "() " + e.getMessage());
            xe.maybeSetLocation(this.getSourceLocator());
            xe.maybeSetContext(context);
        throw xe;
      }

    }
View Full Code Here

Examples of client.net.sf.saxon.ce.trans.XPathException.maybeSetLocation()

              err.setIsTypeError(true);
              throw err;
            } else { // if (exe instanceof UnsupportedOperationException) {
              if (exe.getCause() instanceof XPathException) {
                  XPathException ec = (XPathException)exe.getCause();
                  ec.maybeSetLocation(getSourceLocator());
                  ec.maybeSetContext(context);
                  throw ec;
              } else {
                  // the namespace axis is not supported for all tree implementations
                  dynamicError("Axis Expression Error on: " + cName + " " + exe.getMessage(), "XPST0010", context);
View Full Code Here

Examples of client.net.sf.saxon.ce.trans.XPathException.maybeSetLocation()

            return new QNameValue(parts[0], uri, parts[1], BuiltInAtomicType.QNAME, true);
        } catch (QNameException e) {
            dynamicError(e.getMessage(), "FOCA0002", context);
            return null;
        } catch (XPathException err) {
            err.maybeSetLocation(getSourceLocator());
            throw err;
        }
    }

}
View Full Code Here

Examples of net.sf.saxon.trans.XPathException.maybeSetLocation()

                ann = context.getConfiguration().validateAttribute(nameCode, value, validationAction);
            } catch (ValidationException e) {
                XPathException err = XPathException.makeXPathException(e);
                err.maybeSetErrorCode((validationAction==Validation.STRICT ? "XTTE1510" : "XTTE1515"));
                err.setXPathContext(context);
                err.maybeSetLocation(this);
                err.setIsTypeError(true);
                throw err;
            }
        }
        if ((nameCode & NamePool.FP_MASK) == StandardNames.XML_ID) {
View Full Code Here

Examples of net.sf.saxon.trans.XPathException.maybeSetLocation()

            return getFragment(newdoc, fragmentId, c);

        } catch (TransformerException err) {
            pool.markUnavailable(documentKey);
            XPathException xerr = XPathException.makeXPathException(err);
            xerr.maybeSetLocation(locator);
            String code = (err.getException() instanceof FileNotFoundException) ? "FODC0005" : "FODC0002";
            xerr.maybeSetErrorCode(code);
            try {
                controller.recoverableError(xerr);
            } catch (XPathException err2) {
View Full Code Here

Examples of net.sf.saxon.trans.XPathException.maybeSetLocation()

            XPathException err = new XPathException(e.getMessage(), this);
            err.setErrorCode("FOCA0002");
            err.setLocator(this);
            throw err;
        } catch (XPathException err) {
            err.maybeSetLocation(this);
            throw err;
        }
    }

    /**
 
View Full Code Here

Examples of net.sf.saxon.trans.XPathException.maybeSetLocation()

            return new QNameValue(parts[0], uri, parts[1], BuiltInAtomicType.QNAME, checker);
        } catch (QNameException e) {
            dynamicError(e.getMessage(), "FOCA0002", context);
            return null;
        } catch (XPathException err) {
            err.maybeSetLocation(this);
            throw err;
        }
    }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.