I'm a big fan of exceptions - having coded in lots of non-OO languages (C, x86 asm) and a few OO languages (C++, Java) I can tell you that my code is infinitely cleaner with exceptions than without them.
Reasons?
1) All the languages I ever use allow for *one* return value from a function. Consider the following:
File f = new File("foo");
int i = f.getSize();
How do you handle the case where the file foo doesn't exist? In C, you'd return "-1" from getSize(), but then you can't readily differentiate between non-existent files, permission errors, I/O errors, etc etc etc. Maybe you'd pass in an "error value" that could then be modified, but pass-by-reference values are gross in your APIs, especially for values that aren't typically used anyway.
int size = f.getSize(&err);
2) With exceptions, it's easy to enclose many statements in a single try/catch block, and handle errors for all of them in the same place
With error codes, you end up doing if/then clauses after every statement, checking for error status.
3) In general, integers suck, and not just for error codes
Integers are great for numbers, and not much else, and *certainly* not error codes. They aren't typesafe *at all*. Over the years I've been coding, if I had $10 for every time I've tracked down a bug that was due to someone mis-interpreting an error code as a different type, I'd be able to take a nice vacation.
For example, let's say you write a routine called "foo()", which returns one of 3 error codes:
0 - NO_ERROR
1 - FILE_NOT_FOUND
2 - IO_ERROR
In foo, you then call another routine which has a different set of error values:
0 - NO_ERROR
1 - PATH_INVALID
2 - PERMISSION_ERROR
3 - ... etc ...
Bad things happen if you ever screw up and forget to map between the two error types - the compiler can't help you, as all ints are identical as far as it's concerned.
At least with exceptions, if you define one exception class, and throw another, the compiler will shout.
-druid "Climbing off my soapbox now"