Sets an exception to be thrown on the next call to yieldForEvent.
Note that this only has an effect if yieldForEvent is called outside of a task. To throw an exception in a task, use the event_exception parameter to resumeTask.
See Implementation
Sets an exception to be thrown on the next call to yieldForEvent.
Note that this only has an effect if yieldForEvent is called outside of a task. To throw an exception in a task, use the event_exception parameter to resumeTask.