consistent exception messages

This change prevents the compiler from having into includes an additional unique string in the assembly.