package org.eclipse.collections.impl.block.procedure.checked;
import org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure;
public abstract class CheckedObjectIntProcedure<T>
implements ObjectIntProcedure<T>
{
private static final long serialVersionUID = 1L;
@Override
public final void value(T object, int index)
{
try
{
this.safeValue(object, index);
}
catch (RuntimeException e)
{
throw e;
}
catch (Exception e)
{
throw new RuntimeException("Checked exception caught in Procedure", e);
}
}
@SuppressWarnings("ProhibitedExceptionDeclared")
public abstract void safeValue(T object, int index) throws Exception;
}