public static ForeignExceptionMessage toProtoForeignException(final Throwable t) {
    return toProtoForeignException(null, t);
  }
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