private void onError(Throwable t) {
    if (t instanceof BlobStorageException
        && ((BlobStorageException) t).getErrorCode() == BlobErrorCode.BLOB_ALREADY_EXISTS) {
      // Common case first
      logger.debug("Blob store operation failed due to exception: " + t);
    } else {
      logger.error("Blob store operation failed due to exception: " + t);
      azureMetrics.storageClientOperationExceptionCount.inc();
      // All retries must have been completed internally by now.
      azureMetrics.storageClientFailureAfterRetryCount.inc();
    }
  }
Handle any errors. For now, we update the error metrics.
@param t associated with this error.
ambry-cloud/src/main/java/com/github/ambry/cloud/azure/StorageClient.java