You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 thetry-catch
block inmain.cpp
. Two simple exception classes would beParsingError
andSimulationError
.The text was updated successfully, but these errors were encountered: