refine exception messages.