ds_resource_plugin_py_lib.common.resource.linked_service.errors

File: errors.py Region: ds_resource_plugin_py_lib/common/resource/linked_service

Description

Exceptions for linked services.

Exceptions

LinkedServiceException

Base exception for all linked service-related errors.

UnsupportedLinkedServiceTypeError

Raised when an unsupported linked service type is provided.

InvalidLinkedServiceTypeError

Raised when an invalid linked service type is provided.

InvalidLinkedServiceClassError

Raised when an invalid linked service class is provided

AuthenticationError

Raised when authentication fails.

AuthorizationError

Raised when authorization fails.

ConnectionError

Raised when a connection fails.

Module Contents

exception ds_resource_plugin_py_lib.common.resource.linked_service.errors.LinkedServiceException(message: str = 'Linked service operation failed', code: str = 'DS_LINKED_SERVICE_ERROR', status_code: int = 500, details: dict[str, Any] | None = None)[source]

Bases: ds_resource_plugin_py_lib.common.resource.errors.ResourceException

Base exception for all linked service-related errors.

exception ds_resource_plugin_py_lib.common.resource.linked_service.errors.UnsupportedLinkedServiceTypeError(message: str = 'Unsupported linked service type', code: str = 'DS_LINKED_SERVICE_UNSUPPORTED_TYPE_ERROR', status_code: int = 400, details: dict[str, Any] | None = None)[source]

Bases: LinkedServiceException

Raised when an unsupported linked service type is provided.

exception ds_resource_plugin_py_lib.common.resource.linked_service.errors.InvalidLinkedServiceTypeError(message: str = 'Invalid linked service type', code: str = 'DS_LINKED_SERVICE_INVALID_TYPE_ERROR', status_code: int = 400, details: dict[str, Any] | None = None)[source]

Bases: LinkedServiceException

Raised when an invalid linked service type is provided.

exception ds_resource_plugin_py_lib.common.resource.linked_service.errors.InvalidLinkedServiceClassError(message: str = 'Invalid linked service class', code: str = 'DS_LINKED_SERVICE_INVALID_CLASS_ERROR', status_code: int = 400, details: dict[str, Any] | None = None)[source]

Bases: LinkedServiceException

Raised when an invalid linked service class is provided

exception ds_resource_plugin_py_lib.common.resource.linked_service.errors.AuthenticationError(message: str = 'Authentication failed', code: str = 'DS_LINKED_SERVICE_AUTHENTICATION_ERROR', status_code: int = 401, details: dict[str, Any] | None = None)[source]

Bases: LinkedServiceException

Raised when authentication fails.

exception ds_resource_plugin_py_lib.common.resource.linked_service.errors.AuthorizationError(message: str = 'Authorization failed', code: str = 'DS_LINKED_SERVICE_AUTHORIZATION_ERROR', status_code: int = 403, details: dict[str, Any] | None = None)[source]

Bases: LinkedServiceException

Raised when authorization fails.

exception ds_resource_plugin_py_lib.common.resource.linked_service.errors.ConnectionError(message: str = 'Connection failed', code: str = 'DS_LINKED_SERVICE_CONNECTION_ERROR', status_code: int = 503, details: dict[str, Any] | None = None)[source]

Bases: LinkedServiceException

Raised when a connection fails.