From a7eeae6757844df8cb818b6dd6151539fda831b8 Mon Sep 17 00:00:00 2001 From: Irene Dea Date: Fri, 11 Oct 2024 17:39:27 +0000 Subject: [PATCH] Change cluster errors to user errors --- llmfoundry/utils/exceptions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llmfoundry/utils/exceptions.py b/llmfoundry/utils/exceptions.py index 1fbda7c495..fe28675208 100644 --- a/llmfoundry/utils/exceptions.py +++ b/llmfoundry/utils/exceptions.py @@ -310,7 +310,7 @@ def __init__(self, input: dict) -> None: ## Convert Delta to JSON exceptions -class ClusterDoesNotExistError(NetworkError): +class ClusterDoesNotExistError(UserError): """Error thrown when the cluster does not exist.""" def __init__(self, cluster_id: str) -> None: @@ -318,7 +318,7 @@ def __init__(self, cluster_id: str) -> None: super().__init__(message, cluster_id=cluster_id) -class ClusterInvalidAccessMode(NetworkError): +class ClusterInvalidAccessMode(UserError): """Error thrown when the cluster does not exist.""" def __init__(self, cluster_id: str, access_mode: str) -> None: