class ActiveStorage::Service::AzureStorageService

def handle_errors

def handle_errors
  yield
rescue Azure::Core::Http::HTTPError => e
  case e.type
  when "BlobNotFound"
    raise ActiveStorage::FileNotFoundError
  when "Md5Mismatch"
    raise ActiveStorage::IntegrityError
  else
    raise
  end
end