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