(self, name: str)
| 58 | _errno2class: dict[int, type[Error]] = {} |
| 59 | |
| 60 | def __getattr__(self, name: str) -> type[Error]: |
| 61 | if name[0] == "_": |
| 62 | raise AttributeError(name) |
| 63 | eno = getattr(errno, name) |
| 64 | cls = self._geterrnoclass(eno) |
| 65 | setattr(self, name, cls) |
| 66 | return cls |
| 67 | |
| 68 | def _geterrnoclass(self, eno: int) -> type[Error]: |
| 69 | try: |
nothing calls this directly
no test coverage detected