Skip to content

reconsider error handling #7

Closed
Closed

Description

@jll63

Make throwing exceptions the default?

Activity

  1. jll63 commented on Jun 8, 2025

    @jll63
    CollaboratorAuthor

    I think the current way is the right way. Exceptions should be used to report errors that occur during the execution of a correct program. The errors that the library reports are actually bugs in the program. They are in the same category as inadvertently calling a pure virtual function in a constructor. This typically results in a brief error message, then program termination via abort. Also throwing exceptions (by default) to report errors would not work if exceptions are disabled. Thus the default would have to be different.

  2. locked and limited conversation to collaborators on Jun 19, 2025
  3. converted this issue into a discussion #33 on Jun 19, 2025
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions