pub fn set_error_config(profile_name: &str, err_cfg: ErrorConfig)
Port of mock.SetErrorConfig.
mock.SetErrorConfig