Package net.fortytwo.ripple

Examples of net.fortytwo.ripple.RippleException


                // Soft fail
                e.logError();
            }
        } catch (java.util.regex.PatternSyntaxException e) {
            // Hard fail (for now).
            throw new RippleException(e);
        }
    }
View Full Code Here


                }
            } finally {
                stmtIter.close();
            }
        } catch (SailException e) {
            throw new RippleException(e);
        }

        buffer.flush();
    }
View Full Code Here

                        break;
                    case SO_P:
                        result = st.getPredicate();
                        break;
                    default:
                        throw new RippleException("unhandled query type: " + type);
                }

                results.put(result);
            }
        };
View Full Code Here

            final Resource subj, final URI pred, final Value obj, final Resource... contexts) {
        try {
            return new QueryEvaluationIteration(
                    sailConnection.getStatements(subj, pred, obj, includeInferred, contexts));
        } catch (SailException e) {
            new RippleException(e).logError();
            return new EmptyCloseableIteration<Statement, QueryEvaluationException>();
        }
    }
View Full Code Here

     * @throws RippleException if retrieval from the list fails
     */
    public RippleValue get(final int i)
            throws RippleException {
        if (i < 0) {
            throw new RippleException("list index out of bounds: " + i);
        }

        ListNode<RippleValue> cur = this;
        for (int j = 0; j < i; j++) {
            if (cur.isNil()) {
                throw new RippleException("list index out of bounds: " + i);
            }

            cur = cur.getRest();
        }

View Full Code Here

            Process p = r.exec(command);
            exitCode = p.waitFor();
            normalOutput = readInputStream(p.getInputStream(), OUTPUT_MAXLEN);
            errorOutput = readInputStream(p.getErrorStream(), OUTPUT_MAXLEN);
        } catch (IOException e) {
            throw new RippleException(e);
        } catch (InterruptedException e) {
            throw new RippleException(e);
        }

        solutions.put(
                stack.push(mc.valueOf(exitCode))
                        .push(mc.valueOf(normalOutput))
View Full Code Here

            byte[] data = new byte[len];
            is.read(data);

            return new String(data);
        } catch (IOException e) {
            throw new RippleException(e);
        }
    }
View Full Code Here

                    return RippleValue.Type.LIST;
                } else {
                    return RippleValue.Type.OTHER_RESOURCE;
                }
            } else {
                throw new RippleException("Sesame value has unrecognized class: " + sesameValue);
            }
        } else {
            return value.getType();
        }
    }
View Full Code Here

                }
            } finally {
                results.close();
            }
        } catch (QueryEvaluationException e) {
            throw new RippleException(e);
        }
    }
View Full Code Here

        this.listenerSink = listenerSink;

        try {
            valueFactory = model.sail.getValueFactory();
        } catch (Throwable t) {
            throw new RippleException(t);
        }

        openSailConnection();

        synchronized (model.openConnections) {
View Full Code Here

TOP

Related Classes of net.fortytwo.ripple.RippleException

Copyright © 2018 www.massapicom. 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.