restore missing `add_error_message` method to `Invalid` exception