The ProgramException throws were replaced with calls of ExceptionHandler.handleException method. The only problem is that the ExceptionHandler object is not Singleton and therefore the exitOnException condition will only work for exceptions handled by the ExceptionHandler object that is stored in ProgramState.
Because there are no exceptions thrown, additional return statements and logic were introduced to make sure that the program will run with exceptions until the end.
Closes #56.
The
ProgramException
throws were replaced with calls ofExceptionHandler.handleException
method. The only problem is that the ExceptionHandler object is not Singleton and therefore theexitOnException
condition will only work for exceptions handled by the ExceptionHandler object that is stored inProgramState
.Because there are no exceptions thrown, additional return statements and logic were introduced to make sure that the program will run with exceptions until the end.
Tests seem to be fine.