Convert one exception to type_error