A class for unified hersfunctionality error handling