A context element that builds the call stacks of exceptions thrown in coroutines.

Static variables

@:value(new Key<CallStackHandler>("CallStackHandler"))staticfinalread onlykey:Key<CallStackHandler> = new Key<CallStackHandler>("CallStackHandler")

Methods

buildCallStack(context:Context, frame:IStackFrame):Void

Called as an exception propagates up the coroutine continuation chain, to insert each continuation frame's stack item into the exception stack.

startException(context:Context, frame:IStackFrame, exception:Exception):Exception

Called when an exception is first encountered in a coroutine to process its stack trace. Returns the (potentially modified) exception.