why not make a subclass of typeerror and just catch the different instances how you wnat to