Throw custom exception when trying to add duplicated item