Updated the exception messages to say what type of error occured.