threadExceptionExpression top-level constant
String
const threadExceptionExpression
An expression that evaluates to the exception for the current thread.
In order to support some functionality like "Copy Value" in VS Code's Scopes/Variables window, each variable must have a valid "evaluateName" (an expression that evaluates to it). Since we show exceptions in there we use this magic value as an expression that maps to it.
This is not intended to be used by the user directly, although if they evaluate it as an expression and the current thread has an exception, it will work.
Implementation
const threadExceptionExpression = r'$_threadException';