Add makeErrorClass to language extensions module.