LPS-45615 refactor DuplicateEntryException to support more possible conflicts (will come in the next pull)