Added error handling to TypeTableBuilder