Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduce the AuthenticationError Exception #786

Merged
merged 2 commits into from
May 2, 2021

Conversation

commonism
Copy link
Contributor

Addressing #784, this introduces an Exception which is used to indicate AuthenticationError

@commonism commonism force-pushed the authenticate branch 2 times, most recently from 05a6004 to 6f6f1b2 Compare April 13, 2021 06:33
@commonism commonism force-pushed the authenticate branch 2 times, most recently from 72075f0 to 43c3e16 Compare April 16, 2021 05:15
Copy link
Collaborator

@adferrand adferrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an excellent idea, and I had in my bag to provide a decent hierarchy of exceptions classes for Lexicon.

To align your contribution with this design, could you move this new AuthenticationError class into a dedicated module, lexicon.exceptions, create also a LexiconError class and make AuthenticationError a subclass of it? This is for the future and to provide ability to create more dedicated errors under a unified class hierarchy.

Copy link
Collaborator

@adferrand adferrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's great. Thanks a lot!

@adferrand adferrand merged commit d13bf2a into AnalogJ:master May 2, 2021
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.

2 participants