hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/storage/ContainerProtocolCalls.java
private static void validateContainerResponse(
      ContainerCommandResponseProto response
  ) throws StorageContainerException {
    if (response.getResult() == ContainerProtos.Result.SUCCESS) {
      return;
    }
    throw new StorageContainerException(
        response.getMessage(), response.getResult());
  }
/**
   * Validates a response from a container protocol call.  Any non-successful
   * return code is mapped to a corresponding exception and thrown.
   *
   * @param response container protocol call response
   * @throws IOException if the container protocol call failed
   */
Validates a response from a container protocol call.  Any non-successful
return code is mapped to a corresponding exception and thrown.

@param response container protocol call response
@throws IOException if the container protocol call failed
Validates a response from a container protocol call . Any non - successful return code is mapped to a corresponding exception and thrown . @param response container protocol call response @throws IOException if the container protocol call failed
private static void validateContainerResponse(
      ContainerCommandResponseProto response
  ) throws StorageContainerException {
    if (response.getResult() == ContainerProtos.Result.SUCCESS) {
      return;
    }
    throw new StorageContainerException(
        response.getMessage(), response.getResult());
  }
private static void validateContainerResponse ( ContainerCommandResponseProto response ) throws StorageContainerException { if ( response . getResult ( ) == ContainerProtos . Result . SUCCESS ) { return ; } throw new StorageContainerException ( response . getMessage ( ) , response . getResult ( ) ) ; }
Validates a response from a container protocol call.
Validates a response from a container protocol call .