 defined error code or custom message
        validator_type (str) : either "error" or "warning"

    Returns:
        validation decorator

    