Fix error in constant reference for exception names