Examples of ErrorExpression


Examples of net.sf.saxon.expr.ErrorExpression

            if (arguments.length != 1) {
                throw new StaticError("A constructor function must have exactly one argument");
            }
            AtomicType type = (AtomicType)Type.getBuiltInItemType(uri, localName);
            if (type==null) {
                return new ErrorExpression(
                            new DynamicError("Unknown constructor function: " + localName));
            }
            return new CastExpression(arguments[0], type, false);
        }
View Full Code Here

Examples of net.sf.saxon.expr.ErrorExpression

                }
            }
        } catch (XPathException err) {
            err.setLocator(this);   // because the expression wasn't yet linked into the module
            compileError(err);
            select = new ErrorExpression(err);
        }
    }
View Full Code Here

Examples of net.sf.saxon.expr.ErrorExpression

                        select = TypeChecker.staticTypeCheck(select, requiredType, false, role, getStaticContext());
                    }
                } catch (XPathException err) {
                    err.setLocator(this);
                    compileError(err);
                    select = new ErrorExpression(err);
                }
                var.setSelectExpression(select);
            }
        }
        if (global) {
View Full Code Here

Examples of net.sf.saxon.expr.ErrorExpression

                    XPathException e = new XPathException("Circular definition of parameter " +
                            getVariableQName().getDisplayName());
                    e.setXPathContext(context);
                    e.setErrorCode(isXSLT() ? "XTDE0640" : "XQST0054");
                    // Detect it more quickly the next time (in a pattern, the error is recoverable)
                    select = new ErrorExpression(e);
                    throw e;
                } else {
                    throw err;
                }
            }
View Full Code Here

Examples of org.pdf4j.saxon.expr.ErrorExpression

                    XPathException e = new XPathException("Circular definition of parameter " +
                            getVariableQName().getDisplayName());
                    e.setXPathContext(context);
                    e.setErrorCode(isXSLT() ? "XTDE0640" : "XQST0054");
                    // Detect it more quickly the next time (in a pattern, the error is recoverable)
                    select = new ErrorExpression(e);
                    throw e;
                } else {
                    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.