Refactor exception messages