80 character limit per line
Use consistent formatting of if-then-else
Use String.concat instead of ^ operator
Match prefix of exnMessage only

Using toMatch was not good since the exception name was included
in excMessage, which also makes the separate check for the name
redudant.