Error handling: rework error tooltip logic (will be reused by upcoming feature). (#7961, #7669, #1651) + Comments