org.neo4j.helpers.collection
Class ExceptionHandlingIterable<T>
java.lang.Object
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 !
ExceptionHandlingIterable
public ExceptionHandlingIterable(Iterable<T> source)
getUnsafe
public static sun.misc.Unsafe getUnsafe()
iterator
public Iterator<T> iterator()
- Specified by:
iterator
in interface Iterable<T>
Copyright © 2002-2014 The Neo4j Graph Database Project. All Rights Reserved.