Package client.net.sf.saxon.ce.trans

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


            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

                    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

            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

              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

            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

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.