import com.google.common.base.Function;
import com.google.common.base.Preconditions;
-
import java.util.concurrent.CancellationException;
import java.util.concurrent.ExecutionException;
this.opName = Preconditions.checkNotNull(opName);
}
+ /**
+ * Return the exception class produced by this instance.
+ *
+ * @return Exception class.
+ */
+ protected final Class<X> getExceptionType() {
+ return exceptionType;
+ }
+
/**
* Invoked to create a new exception instance of the specified type.
*