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 convertRepositoryResult
exceptions toQueryEvaluationException
.- Author:
- Andreas Schwarte
-
-
Constructor Summary
Constructors Constructor Description RepositoryExceptionConvertingIteration(Iteration<? extends T,? extends Exception> iter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected QueryEvaluationException
convert(Exception e)
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
-
-
-
-
Method Detail
-
convert
protected QueryEvaluationException convert(Exception e)
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>
-
-