Neo4j

org.neo4j.helpers.collection
Class ExceptionHandlingIterable<T>

java.lang.Object
  extended by org.neo4j.helpers.collection.ExceptionHandlingIterable<T>
Type Parameters:
T -
All Implemented Interfaces:
Iterable<T>

public class ExceptionHandlingIterable<T>
extends Object
implements Iterable<T>

allows to catch, analyse and react on exceptions that are thrown by the inner iterable useful for exception conversion on iterator methods Uses sun.misc.Unsafe internally to rethrow original exceptions !


Constructor Summary
ExceptionHandlingIterable(Iterable<T> source)
           
 
Method Summary
static sun.misc.Unsafe getUnsafe()
           
 Iterator<T> iterator()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionHandlingIterable

public ExceptionHandlingIterable(Iterable<T> source)
Method Detail

getUnsafe

public static sun.misc.Unsafe getUnsafe()

iterator

public Iterator<T> iterator()
Specified by:
iterator in interface Iterable<T>

Neo4j

Copyright © 2002-2014 The Neo4j Graph Database Project. All Rights Reserved.