The application should under all circumstances behave like the following:
If no error or warning has occurred during execution, it should exit with status code 0
If at any point during execution an error has occurred, it should exit with status code 1
If at any point during executing a warning has been logged AND no error has occurred, it should exit with status code 2
Firslty i do not understand what the exatly purpose of those should be and secondly i am curios of how this should work. Should i make a method or is it okay if i use it when erros and more occur ? is there any way of solving those 3 problems?
New contributor
user26136780 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.