Checking for correct exception-message