Let me start by saying that I do not advocate this approach, but I saw it recently and I was wondering if there was a name for it I could use to point the guilty party to. So h
I usually pass the payload as (not const) reference and the error code as a return value.
I'm a game developer, we banish exceptions