Skip to content

Exception handling doesn't work #5

@SirNerdBear

Description

@SirNerdBear

Given code like this where the file doesn't exist:

try {
    PhysFS::ifstream file ("filename.txt");
} catch (std::invalid_argument e) {
    //do something here
}

A bad access error will crash the program.

If I remove the exception handling, then it correctly shows the unhanded exception of:

throw std::invalid_argument("file not found: " + std::string(filename));

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