Added the management of errors in Set Class

IMO the set should handle the errors, 
the main idea behind this is to remove the logic business from command to ease the reusability
the system.

hi csarrazi, thank you for review :) I will update my PR.
Can you please help us to increment the available questions ? :dancer: