ds_provider_powerofficego_py_lib.errors

File: errors.py Region: src/ds_provider_powerofficego_py_lib/errors.py

This module defines custom exceptions for the PowerOfficeGo data provider library. These exceptions are used to handle specific error cases that may arise during the execution of the library’s functions.

Exceptions

InvalidIncrementalWatermarkException

Raised when an incremental watermark value is not valid for the configured strategy.

UnsupportedIncrementalKindException

Raised when incremental metadata uses an unsupported kind.

Module Contents

exception ds_provider_powerofficego_py_lib.errors.InvalidIncrementalWatermarkException(message: str, code: str = 'DS_POWEROFFICEGO_INCREMENTAL_WATERMARK_INVALID', status_code: int = 500, details: dict[str, Any] | None = None)[source]

Bases: ds_resource_plugin_py_lib.common.resource.dataset.errors.ReadError

Raised when an incremental watermark value is not valid for the configured strategy.

exception ds_provider_powerofficego_py_lib.errors.UnsupportedIncrementalKindException(message: str, code: str = 'DS_POWEROFFICEGO_INCREMENTAL_KIND_UNSUPPORTED', status_code: int = 500, details: dict[str, Any] | None = None)[source]

Bases: ds_resource_plugin_py_lib.common.resource.dataset.errors.ReadError

Raised when incremental metadata uses an unsupported kind.