code: function (func, name, value, valid) {
          if (typeof valid !== "undefined")
              if (!$cs.validate(value, valid))
                  throw _cs.exception(func, "parameter \"" + name + "\" has " +
                      "value " + _cs.json(value) + ", which does not validate " +
                      "against \"" + valid + "\"");
      }
docs: /*  common value validity checking