maybe call it "errorParamsGenerator" also ?