Package net.fortytwo.ripple

Examples of net.fortytwo.ripple.RippleException


            sailConnection.commit();
            sailConnection.begin();
        } catch (SailReadOnlyException e) {
            handleSailReadOnlyException(e);
        } catch (Throwable t) {
            throw new RippleException(t);
        }
    }
View Full Code Here


                        = new SailConnectionListenerAdapter(listenerSink);

                ((NotifyingSailConnection) sailConnection).addConnectionListener(listener);
            }
        } catch (Throwable t) {
            throw new RippleException(t);
        }
    }
View Full Code Here

                logger.severe("tried to close an already-closed connection");
            }
        } catch (SailReadOnlyException e) {
            handleSailReadOnlyException(e);
        } catch (Throwable t) {
            throw new RippleException(t);
        }
    }
View Full Code Here

    private Literal castToLiteral(final Value v) throws RippleException {
        if (v instanceof Literal) {
            return (Literal) v;
        } else {
            throw new RippleException("value " + v + " is not a Literal");
        }
    }
View Full Code Here

            }
        } catch (SailReadOnlyException e) {
            handleSailReadOnlyException(e);
        } catch (SailException e) {
            reset(true);
            throw new RippleException(e);
        }
    }
View Full Code Here

            }
        } catch (SailReadOnlyException e) {
            handleSailReadOnlyException(e);
        } catch (SailException e) {
            reset(true);
            throw new RippleException(e);
        }
    }
View Full Code Here

                stmtIter.close();
            }
        } catch (Throwable t) {
            reset(true);
            throw new RippleException(t);
        }

        return count;
    }
View Full Code Here

            // Note: do NOT automatically canonicalize values.  Sometimes one needs the original URI (e.g. so as to
            // remove statements), and not the native object it maps to.
            return new RDFValue(valueFactory.createURI(s.toString()));
        } catch (Throwable t) {
            reset(true);
            throw new RippleException(t);
        }
    }
View Full Code Here

        synchronized (logger) {
            if (null == DATATYPE_FACTORY) {
                try {
                    DATATYPE_FACTORY = DatatypeFactory.newInstance();
                } catch (DatatypeConfigurationException e) {
                    throw new RippleException(e);
                }
            }
        }

        GregorianCalendar c = new GregorianCalendar();
View Full Code Here

        final RippleList rest = stack.getRest();

        Sink<RippleList> listSink = new Sink<RippleList>() {
            public void put(RippleList list) throws RippleException {
                if (i < 1) {
                    throw new RippleException("list index out of bounds" +
                            " (keep in mind that 'at' begins counting at 1): " + i);
                }

                for (int j = 1; j < i; j++) {
                    list = list.getRest();
                    if (list.isNil()) {
                        throw new RippleException("list index out of bounds: " + i);
                    }
                }

                solutions.put(
                        rest.push(list.getFirst()));
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.