reply
Also error codes are part of the signature of a function, which exceptions aren‘t.
enum (class)? [[nodiscard]] Error { Ok, NoMem, ... };
C attribute: nodiscard (since C23)