Wren Plugin for Xojo

VM.AbortFiber Method

Sets the current fiber to be aborted, and uses the value in given slot number as the runtime error object.

AbortFiber(
   slot as Integer)

Parameters

slot
Slot number to put the error message in.

Remarks

Make sure you have slot to put the error message in first:


vm.EnsureSlots(1) // Make sure we have at least one slot
vm.SlotString(0) = “Some error was encountered.”
vm.AbortFiber(0)
return



See Also

VM Class