Skip to content

Replace exit(EXIT_FAILURE) with exceptions for better error handling and testability #949

@Koichi98

Description

@Koichi98

Refactor exit(EXIT_FAILURE) calls to throw exceptions (e.g., std::runtime_error) for better error handling and testability.
- Current code uses exit(EXIT_FAILURE) which terminates the process abruptly without cleanup - Exceptions allow callers to catch and handle errors gracefully - Easier to write unit tests with EXPECT_THROW

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions