const-ify catch statements in Parser and Checker