pub fn internal_err_with_data<T: ToString>(
    message: T,
    data: &[u8]
) -> ErrorObjectOwned