TerminatedEvaluation
TerminatedEvaluation["reason"]
represents an expression whose evaluation overran global kernel session limits and was terminated.
Examples
Basic Examples (2)
The recursion is cut off and the recursing expression replaced by TerminatedEvaluation[…]:

The function g is designed to always exceed $IterationLimit:
The iteration is cut off and the expression replaced by TerminatedEvaluation[…]:

Text
Wolfram Research (2022), TerminatedEvaluation, Wolfram Language function, https://reference.wolfram.com/language/ref/TerminatedEvaluation.html.
CMS
Wolfram Language. 2022. "TerminatedEvaluation." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TerminatedEvaluation.html.
APA
Wolfram Language. (2022). TerminatedEvaluation. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TerminatedEvaluation.html