Skip to content

refactor!: rename exceptions module to error - #8

Merged
mathisarends merged 1 commit into
mainfrom
refactor/error-module
Nov 7, 2026
Merged

mathisarends merged 1 commit into
mainfrom
refactor/error-module

Conversation

@mathisarends

Copy link
Copy Markdown
Owner

Move the library's error definitions from cdpify.exceptions to cdpify.error so the module matches the public CDPError naming.

All internal and test imports now use the new module. Root-package error exports, the class hierarchy, and existing deprecated class aliases retain their behavior.

Breaking change: cdpify.exceptions is removed. Replace imports such as:

from cdpify.exceptions import CDPCommandError

with:

from cdpify.error import CDPCommandError

from cdpify import CDPCommandError continues to work. README and the Unreleased changelog document the migration.

Validation:

  • 298 unit tests passed.
  • Ruff lint and formatting passed; Pyright reported zero errors or warnings.
  • Built a wheel from a fresh source copy and verified new-module imports and root-export identity, with the old module absent.

@mathisarends
mathisarends merged commit 4dbcf38 into main Nov 7, 2026
11 checks passed
@mathisarends
mathisarends deleted the refactor/error-module branch November 7, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant