[docs]class TreeError(RuntimeError): """Tree Error.""" [docs]class LoopError(TreeError): """Tree contains infinite loop."""