public static ProxyException convert(Throwable cause) {
      if (cause instanceof ProxyException) {
        return (ProxyException) cause;
      } else {
        return new ProxyException(cause);
      }
    }
Convert an exception to a VDBRuntimeException.
@param cause the exception to convert
@return the wrapping CubeException
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/properties/SerializationProxy.java