def Msg(validator, message):
@wraps(Msg)<EOL>def built(value):<EOL><INDENT>try:<EOL><INDENT>return validator(value)<EOL><DEDENT>except Error as e:<EOL><INDENT>e.message = message<EOL>raise e<EOL><DEDENT><DEDENT>return built<EOL>
Wraps the given validator callable, replacing any error messages raised.