Skip to content

Add specific token validation error subclasses#496

Merged
leoschwarz merged 1 commit into
mainfrom
more-specific-token-error
May 6, 2026
Merged

Add specific token validation error subclasses#496
leoschwarz merged 1 commit into
mainfrom
more-specific-token-error

Conversation

@leoschwarz
Copy link
Copy Markdown
Member

Introduce BfabricTokenExpiredError and BfabricTokenInvalidError as subclasses of BfabricTokenValidationFailedError.

Introduce `BfabricTokenExpiredError` and `BfabricTokenInvalidError` as
subclasses of `BfabricTokenValidationFailedError`. Update the
documentation and changelog to list the new errors. Adjust the
`token_data` module to raise these new exceptions instead of the
generic one. Refactor tests to use the specific error types and add a
dedicated test suite checking inheritance, custom messages, and
distinguishability. Remove obsolete `reportCallIssue` and
`reportArgumentType` entries from the basedpyright baseline.
@leoschwarz leoschwarz merged commit d8deed6 into main May 6, 2026
4 checks passed
@leoschwarz leoschwarz deleted the more-specific-token-error branch May 6, 2026 09:07
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