Skip to main content

raise_error_streamed

Function raise_error_streamed 

Source
pub unsafe fn raise_error_streamed(
    ctxt: *mut c_void,
    domain: c_int,
    code: c_int,
    level: c_int,
    file: *const c_char,
    line: c_int,
    msg: *const c_char,
    source_window: Option<(&[u8], usize)>,
    delivery: GenericDelivery,
)
Expand description

Raise an error with upstream’s full routing (error.c 2.15 xmlVRaiseError): update the last error, then deliver to the structured handler or the selected generic channel — never both.

file/line/source_window feed the generic fragment stream (the structured handler receives the complete xmlError instead).

§SAFETY

  • ctxt may be NULL.
  • msg and file must be valid C strings or NULL.
  • source_window bytes must be valid for the duration of the call.