Skip to content

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