Examples of RexProException


Examples of com.tinkerpop.rexster.client.RexProException

        if (meta.get(key) == null){
            if (defaultValue != null) {
                meta.put(key, defaultValue);
                return;
            } else if (required){
                throw new RexProException("meta value is required for " + key);
            }
            //otherwise, bail out
            return;
        }

        //handle improperly typed values
        final Object val = meta.get(key);
        if (!fieldType.isInstance(val)) {
            throw new RexProException(this.fieldType.toString() + " type required for " + key + ", " + val.getClass().toString() + " found");
        }

    }
View Full Code Here

Examples of com.tinkerpop.rexster.client.RexProException

     * @param graphObjName: the variable name of the graph in the interpreter (usually "g")
     */
    public void setGraphObj(final String graphName, final String graphObjName) throws RexProException{
        graphObj = rexsterApplication.getGraph(graphName);
        if (graphObj == null) {
            throw new RexProException("the graph '" + graphName + "' was not found by Rexster");
        }
        this.graphObjName = graphObjName;
        bindings.put(this.graphObjName, graphObj);
    }
View Full Code Here

Examples of com.tinkerpop.rexster.client.RexProException

        scriptMessage.setRequestAsUUID(UUID.randomUUID());

        final RexProMessage inMsg = client.execute(scriptMessage);

        if (inMsg instanceof ErrorResponseMessage) {
            throw new RexProException(((ErrorResponseMessage) inMsg).ErrorMessage);
        } else if (!(inMsg instanceof ScriptResponseMessage)) {
            throw new RexProException("wrong response type");
        }

        final ScriptResponseMessage msg = (ScriptResponseMessage) inMsg;

        return (Map<String, Map<String,String>>) msg.Results.get();
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.