Class RepositoryExceptionConvertingIteration<T>
java.lang.Object
org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration<E,X>
org.eclipse.rdf4j.common.iteration.ExceptionConvertingIteration<T,QueryEvaluationException>
org.eclipse.rdf4j.federated.evaluation.iterator.RepositoryExceptionConvertingIteration<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
AutoCloseable
,CloseableIteration<T,
,QueryEvaluationException> Iteration<T,
QueryEvaluationException>
public class RepositoryExceptionConvertingIteration<T>
extends ExceptionConvertingIteration<T,QueryEvaluationException>
Convenience iteration to convert
RepositoryResult
exceptions to QueryEvaluationException
.- Author:
- Andreas Schwarte
-
Constructor Summary
ConstructorDescriptionRepositoryExceptionConvertingIteration
(Iteration<? extends T, ? extends Exception> iter) -
Method Summary
Modifier and TypeMethodDescriptionprotected QueryEvaluationException
Converts an exception from the underlying iteration to an exception of type X.Methods inherited from class org.eclipse.rdf4j.common.iteration.ExceptionConvertingIteration
handleClose, hasNext, next, remove
Methods inherited from class org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration
close, isClosed
-
Constructor Details
-
RepositoryExceptionConvertingIteration
-
-
Method Details
-
convert
Description copied from class:ExceptionConvertingIteration
Converts an exception from the underlying iteration to an exception of type X.- Specified by:
convert
in classExceptionConvertingIteration<T,
QueryEvaluationException>
-