Skip to content

Idiomatic way to generate custom errors #931

Closed Answered by tomtau
skittishdev asked this question in Q&A
Discussion options

You must be logged in to vote

Oh, I missed it was MyError, not WrapperError... maybe you can have a helper (private) function generate_ast_helper that returns WrapperError as the error type that's called by generate_ast... in that way, you can use ? in both?

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
10 replies
@tomtau
Comment options

@skittishdev
Comment options

@skittishdev
Comment options

@tomtau
Comment options

Answer selected by skittishdev
@skittishdev
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
2 participants