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.