Add a log method for exceptions.

I'm tired of creating the exception messages every time!