setError

fun ErrorCapableNode.setError(throwable: Throwable, context: Context)

Sets the given throwable as the error of this node, paired with the error handler from context.

Parameters

throwable

the error to set

context

context to retrieve the error handler from