示例#1
0
        private TexlError PostError(Token tok, ErrorResourceKey errKey)
        {
            Contracts.AssertValue(tok);
            Contracts.AssertValue(errKey.Key);

            TexlError err = new TexlError(tok, DocumentErrorSeverity.Critical, errKey);

            CollectionUtils.Add(ref _errors, err);
            return(err);
        }
示例#2
0
        public TexlError Error(DocumentErrorSeverity severity, TexlNode node, ErrorResourceKey errKey, params object[] args)
        {
            Contracts.AssertValue(node);
            Contracts.AssertValue(args);

            TexlError err = new TexlError(node, severity, errKey, args);

            CollectionUtils.Add(ref _errors, err);
            return(err);
        }