Enhancing common error and exception message generation.