Merge "Fix checkListKey not checking actual/expected values"
[yangtools.git] / common / util / src / main / java / org / opendaylight / yangtools / util / concurrent / ExceptionMapper.java
index af51032dd27b5b65dedcd96b2a62c9f0c32f8fb7..604ca3692c6f41b3cc74f941a1f16e201ca591a2 100644 (file)
@@ -43,6 +43,15 @@ public abstract class ExceptionMapper<X extends Exception> implements Function<E
         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.
      *