Make exception catch const