<#3518 refactor: Consolidate exception definitions...
# meltano-repo-activity
g
#3518 refactor: Consolidate exception definitions into the `singer_sdk.exceptions` module Pull request opened by edgarrmondragon Links Summary by Sourcery Consolidate and document the exception hierarchies for the SDK and Singer protocol layers while centralizing scattered exceptions into
singer_sdk.exceptions
and clarifying their usage. Enhancements: • Move discovery- and configuration-related exceptions (
MapperNotInitialized
,
EmptySchemaTypeError
,
SchemaNotFoundError
,
SchemaNotValidError
,
UnsupportedSchemaFormatError
) into the unified
singer_sdk.exceptions
hierarchy and expose a backward-compatible
UnsupportedOpenAPISpec
alias. • Introduce a dedicated Singer protocol exception hierarchy in
singer_sdk.singerlib.exceptions
(
SingerError
→
SingerReadError
→
InvalidInputLine
) and keep it separate from
SingerSDKError
. • Simplify and realign exception tests to cover the expanded hierarchy, including new configuration and discovery errors and the Singer protocol hierarchy, while removing obsolete
__all__
and leaf-instantiation checks. Documentation: • Update error design and hierarchy documentation to reflect completed Phase 2, the consolidated SDK exception tree, and the separate Singer protocol exception hierarchy. meltano/sdk