It still isn't quite doing the right matching, but it's really close.
fixed handling empty exception messages
Finished the new error handling