Add check for exception message
Merge pull request #7 from icambridge/feature/exception_with_message

Add check for exception message