Improved exception messages for InvalidArgumentException