auto checker = new ParamCheckHelper(); checker.finish(); // this will throw if any of the checks failed // now go ahead and use the params
See Implementation