X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=common%2Futil%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Futil%2Fconcurrent%2FExceptionMapper.java;h=1616cd24aaebc4c6b7512c7493195b629194ebcd;hb=178b951cbabbc81d3bcf00749a7c97964ed20296;hp=604ca3692c6f41b3cc74f941a1f16e201ca591a2;hpb=0eb60011b52e4e56c62b47a36eb334f2c3b3ad6a;p=yangtools.git diff --git a/common/util/src/main/java/org/opendaylight/yangtools/util/concurrent/ExceptionMapper.java b/common/util/src/main/java/org/opendaylight/yangtools/util/concurrent/ExceptionMapper.java index 604ca3692c..1616cd24aa 100644 --- a/common/util/src/main/java/org/opendaylight/yangtools/util/concurrent/ExceptionMapper.java +++ b/common/util/src/main/java/org/opendaylight/yangtools/util/concurrent/ExceptionMapper.java @@ -10,25 +10,32 @@ package org.opendaylight.yangtools.util.concurrent; import com.google.common.base.Function; import com.google.common.base.Preconditions; - import java.util.concurrent.CancellationException; import java.util.concurrent.ExecutionException; /** - * Utility exception mapper which translates an Exception to a specified type of Exception. + * Utility exception mapper which translates an Exception to a specified type of + * Exception. * - * This mapper is intended to be used with {@link com.google.common.util.concurrent.Futures#makeChecked(com.google.common.util.concurrent.ListenableFuture, Function)} + *

+ * This mapper is intended to be used with + * {@link com.google.common.util.concurrent.Futures#makeChecked(com.google.common.util.concurrent.ListenableFuture, Function)} *

* * @author Thomas Pantelis * - * @param the exception type + * @param + * the exception type */ public abstract class ExceptionMapper implements Function { + private final Class exceptionType; private final String opName;