feat(minErr): add optional ErrorConstructor argument for symmetry with o...

...riginal

Pending merging of change in #8709