Skip to main content

throw_error

Function throw_error 

Source
pub fn throw_error(
    core: &Core,
    binding: &Arc<dyn ProducerBinding>,
    error_handle: HandleId,
) -> NodeId
Expand description

Emit ERROR immediately with the given error handle (cold error source).

The caller must pre-intern the error handle on the binding side. The handle is retained once for the emission; the caller’s original share is consumed (do NOT release after calling this).