Files
zenml/venv/lib/python3.9/site-packages/databricks/sdk/errors/overrides.py
Christian Mantha 2ca0b9ef7c star
2026-03-02 19:10:52 -05:00

37 lines
1.4 KiB
Python

# Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
import re
from .base import _ErrorOverride
from .platform import ResourceDoesNotExist
_ALL_OVERRIDES = [
_ErrorOverride(
debug_name="Clusters InvalidParameterValue=>ResourceDoesNotExist",
path_regex=re.compile(r"^/api/2\.\d/clusters/get"),
verb="GET",
status_code_matcher=re.compile(r"^400$"),
error_code_matcher=re.compile(r"INVALID_PARAMETER_VALUE"),
message_matcher=re.compile(r"Cluster .* does not exist"),
custom_error=ResourceDoesNotExist,
),
_ErrorOverride(
debug_name="Jobs InvalidParameterValue=>ResourceDoesNotExist",
path_regex=re.compile(r"^/api/2\.\d/jobs/get"),
verb="GET",
status_code_matcher=re.compile(r"^400$"),
error_code_matcher=re.compile(r"INVALID_PARAMETER_VALUE"),
message_matcher=re.compile(r"Job .* does not exist"),
custom_error=ResourceDoesNotExist,
),
_ErrorOverride(
debug_name="Job Runs InvalidParameterValue=>ResourceDoesNotExist",
path_regex=re.compile(r"^/api/2\.\d/jobs/runs/get"),
verb="GET",
status_code_matcher=re.compile(r"^400$"),
error_code_matcher=re.compile(r"INVALID_PARAMETER_VALUE"),
message_matcher=re.compile(r"(Run .* does not exist|Run: .* in job: .* doesn\'t exist)"),
custom_error=ResourceDoesNotExist,
),
]