public static Exception toException(final ForeignExceptionMessage eem) {
    Exception re;
    try {
      re = createException(Exception.class, eem);
    } catch (Throwable e) {
      re = new Exception(eem.getGenericException().getMessage());
    }
    return setExceptionDetails(re, eem);
  }
Helper to convert Exceptions and StackTraces from/to protobuf. (see ErrorHandling.proto for the
internal of the proto messages)
hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/util/ForeignExceptionUtil.java