raise exception for set method