def METHOD_NAME(self):
    expected_error = r"incompatible constructor arguments.*\n.*BatchElementError.ErrorCode"
    with pytest.raises(TypeError, match=expected_error):
        BatchElementError(-123, "whatever")