Skip to content

use throw to allow better control of errors #347

Open
@drbergman

Description

@drbergman

We currently use exit(-1); whenever the code does something undesirable. This does not allow users to control the handling of these exceptions. We could make some simple exception classes with standardized return values that give users this control, return exception-specific return values, and make use of the try-catch block in main.cpp. Two simple exception classes would be ParsingError and SimulationError.

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