예제 #1
0
        internal RuntimeErrorNode RuntimeError(RuntimeErrorNode err)
        {
            if (!err.IsFatal || runtimeError == null)
            {
                RuntimeErrrorOccurred?.Invoke(err);
            }
            if (err.IsFatal && runtimeError == null)
            {
                runtimeError = err;
            }

            return(err);
        }
예제 #2
0
        internal RuntimeErrorNode RuntimeError(ERuntimeErrors errNo = ERuntimeErrors.Unspecified, params object[] args)
        {
            var err = new RuntimeErrorNode(CurrentLine, errNo, args);

            return(RuntimeError(err));
        }