LPS-45615 refactor DuplicateEntryException to support more possible conflicts

Hi Brian,

We are using "type" to differentiate the different types of RestoreEntryException. (please see LayoutFriendlyURLException)

Regards,

Eudaldo.