ScriptRuntimeException.thrownValue

If it is thrown by a script, this is the value that was thrown

class ScriptRuntimeException
ScriptAny thrownValue;

Meta