public static function validate(Column $coldef, $value)
    {
        $field = $coldef->getName();
        try
        {
            $valid = $coldef->validate($value);
        }
        catch (InvalidValueException $e)
        {
            $rep = WF::str($value);
            throw new InvalidValueException("Field $field cannot be set to $rep: {$e->getMessage()}");
        }
        
        return $valid;
    }