Skip to content

Is there a way to control errorType in an error response? #824

Answered by calavera
kikuomax asked this question in Q&A
Discussion options

You must be logged in to vote

We could introduce some kind of error casting. We could check for it, using type_name_of_val as a fallback. That's just an idea, but if you have any other idea, or want to try to implement it, feel free to open a PR.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@kikuomax
Comment options

@kikuomax
Comment options

Answer selected by kikuomax
Comment options

You must be logged in to vote
3 replies
@evbo
Comment options

@kikuomax
Comment options

@kikuomax
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants