Skip to content

Consider except::dump_info(std::exception_ptr) #9

Description

@kammce

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 except::dump_info is called.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions