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

Multiple Exceptions, use a CompositeException? #161

Open
oxinabox opened this issue Jun 10, 2021 · 0 comments
Open

Multiple Exceptions, use a CompositeException? #161

oxinabox opened this issue Jun 10, 2021 · 0 comments

Comments

@oxinabox
Copy link
Contributor

oxinabox commented Jun 10, 2021

Right now if there are multiple errors, only one is thrown.
Julia has a CompositeException type that wraps many execeptions, it is intended for use with tasks, but we could use it for this, or we could make another similar type that wraps many.
That seems cleaner than just losing all but the first as we currently do

@warn("caught $(length(XML_GLOBAL_ERROR_STACK)) errors; showing the first one")

In general getting a warning like this can be annouying since if we actually can recover from the error (via try-catch) then the end user never finds out what that warning is talking about.

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

No branches or pull requests

1 participant