Return the successful value or throw a code-specific StatusException.
try { const node = valueOrThrow(await AsyncNode.create('answer'));} catch (error) { if (error instanceof StatusException) report(error.status);} Copy
try { const node = valueOrThrow(await AsyncNode.create('answer'));} catch (error) { if (error instanceof StatusException) report(error.status);}
Return the successful value or throw a code-specific StatusException.