def read_file(self, path: Path):
        """Read the content of a file from a given path; raise a ToolError if an error occurs."""
        try:
            return path.read_text()
        except Exception as e:
            raise ToolError(f"Ran into {e} while trying to read {path}") from None
Read the content of a file from a given path; raise a ToolError if an error occurs.
src/upsonic/server/level_utilized/cu/edit.py