Try catch exception handling in EquationSolver