With error codes, if A calls B, calls C, which fails and returns an error code to B, B can in turn fail (or gracefully handle the error) - and return a code to A.
With exceptions, someone can add a new error to C, causing it to bypass B's catch clauses, and get handled at A.