Examples of DynamicError


Examples of xbird.xquery.DynamicError

    }

    public AtomicValue createInstance(String literal, AtomicType srcType, DynamicContext dynEnv)
            throws XQueryException {
        if(literal.indexOf('E') != -1 || literal.indexOf('e') != -1) {
            throw new DynamicError("err:FORG0001", "Illegal representation as xs:decimal: "
                    + literal);
        }
        try {
            return new XDecimal(literal, this);
        } catch (NumberFormatException nfe) {
            throw new DynamicError("err:FORG0001", "failed to cast as '" + SYMBOL + "': " + literal);
        }
    }
View Full Code Here

Examples of xbird.xquery.DynamicError

    public void evStartDocument() throws XQueryException {
        try {
            output.writeByte(EV_START_DOC);
        } catch (IOException e) {
            throw new DynamicError("failed on evStartDocument", e);
        }
    }
View Full Code Here

Examples of xbird.xquery.DynamicError

    public void evEndDocument() throws XQueryException {
        try {
            output.writeByte(EV_END_DOC);
        } catch (IOException e) {
            throw new DynamicError("failed on evEndDocument", e);
        }
    }
View Full Code Here

Examples of xbird.xquery.DynamicError

            output.writeByte(EV_START_ELEM);
            writeString(output, prefix);
            writeString(output, localName);
            writeString(output, namespaceURI);
        } catch (IOException e) {
            throw new DynamicError("failed on evStartElement", e);
        }
    }
View Full Code Here

Examples of xbird.xquery.DynamicError

            output.writeByte(EV_END_ELEM);
            writeString(output, prefix);
            writeString(output, localName);
            writeString(output, namespaceURI);
        } catch (IOException e) {
            throw new DynamicError("failed on evEndElement", e);
        }
    }
View Full Code Here

Examples of xbird.xquery.DynamicError

        try {
            output.writeByte(EV_ATTR);
            qname.writeExternal(output);
            writeString(output, value);
        } catch (IOException e) {
            throw new DynamicError("failed on evAttribute", e);
        }
    }
View Full Code Here

Examples of xbird.xquery.DynamicError

        try {
            output.writeByte(EV_NAMESPACE);
            writeString(output, prefix);
            writeString(output, uri);
        } catch (IOException e) {
            throw new DynamicError("failed on evNamespace", e);
        }
    }
View Full Code Here

Examples of xbird.xquery.DynamicError

            int end = start + length;
            for(int i = start; i < end; i++) {
                output.writeChar(ch[i]);
            }
        } catch (IOException e) {
            throw new DynamicError("failed on evText", e);
        }
    }
View Full Code Here

Examples of xbird.xquery.DynamicError

            int end = start + length;
            for(int i = start; i < end; i++) {
                output.writeChar(ch[i]);
            }
        } catch (IOException e) {
            throw new DynamicError("failed on evCData", e);
        }
    }
View Full Code Here

Examples of xbird.xquery.DynamicError

            int end = start + length;
            for(int i = start; i < end; i++) {
                output.writeChar(ch[i]);
            }
        } catch (IOException e) {
            throw new DynamicError("failed on evComment", e);
        }
    }
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.