improve exception messages of ParentIdGenerator