Skip to content

Add TokenExtractionError and TokenParsingError types to help distinguishing error source in ErrorHandler #6

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

Merged
merged 1 commit into from
Jan 26, 2023

Conversation

aldas
Copy link
Contributor

@aldas aldas commented Jan 26, 2023

Add TokenExtractionError and TokenParsingError types to help distinguishing error source in ErrorHandler.

background: one of my own applications does some checking in ErrorHandler and needs to know is error is related to extraction or parsing. Although we just introduced TokenError I think there should be more guaranteed way to differentiate these cases when custom extractors and parserFuncs are being used.

@aldas aldas force-pushed the extra_error_types branch from 8d2db81 to 0391aa4 Compare January 26, 2023 20:16
@aldas aldas merged commit 95b0b60 into labstack:main Jan 26, 2023
@aldas aldas deleted the extra_error_types branch January 26, 2023 20:30
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