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

Consider hal::dump_exception_info(std::exception_ptr) #58

Open
kammce opened this issue Dec 16, 2024 · 0 comments
Open

Consider hal::dump_exception_info(std::exception_ptr) #58

kammce opened this issue Dec 16, 2024 · 0 comments
Labels
⚡️ enhancement New feature or request

Comments

@kammce
Copy link
Member

kammce commented Dec 16, 2024

Such an API would dump information about the exception to a buffer. The kinds of information that would appear there would be:

  • Exception type
  • Exception stack trace (if enabled)
  • std::exception::what() contents if the type is derived from std::exception

We should provide a means to tell the system about the other exception types in our system that have useful information. That way, we don't have to derive from std::exception to get additional information. This could also reduce ROM size because we won't render a string or save it into our error objects. We can just keep the data we need in our error objects then render their text when the hal::dump_exception_info is called.

@kammce kammce added the ⚡️ enhancement New feature or request label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚡️ enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant