Function vtd_xml::vtd_catch [] [src]

pub fn vtd_catch(cb: &mut FnMut() -> Result<(), Box<Error>>)
                 -> Result<(), Box<Error>>

Catches VTD-XML exceptions, returning them as a Rust error.

Rust panics in the cb are propagated.