<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_error_codes(cls) -> Iterable[str]: """Yield all registered codes."""

        for group in cls.groups:
            for error in group.errors:
                yield error.code