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

Support for exceptions with custom data #2597

Closed
bluenote10 opened this issue Aug 27, 2022 · 1 comment
Closed

Support for exceptions with custom data #2597

bluenote10 opened this issue Aug 27, 2022 · 1 comment

Comments

@bluenote10
Copy link

I'd like to create a custom exception that contains additional properties, i.e., not just a message-based exception. I assume I'm supposed to use create_exception!, but I couldn't figure out how to use a custom class with it.

If it is already supported it would be great to document it, otherwise this would be a feature request to support custom data classes for exceptions.

@davidhewitt
Copy link
Member

We have #295 which talks about this and what remaining work to call this feature "complete". Please join the discussion there, it would be great to have some opinions to help finish this off!

Closing this issue as a duplicate.

@davidhewitt davidhewitt closed this as not planned Won't fix, can't repro, duplicate, stale Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants