Exit codes
To indicate if a program ran successfully or had problem, exit codes are used.
Exit codes are the numeric values which tells the operating system that the executable ran successfully or not.
SRON's interpreter returns these exit codes:
0: code ran successfully with no errors and exceptions.
1: code ran into errors caused by logical issues.
2: code tries to access a memory which it doesn't own.
3: Your system has no memory left.
4: code raises an exception thrown by std::exception of C++.
5: Your source code is calling throw_exception() function.
Last updated