When is it appropriate to use error codes?

Posted by Jim Hurne on Stack Overflow See other posts from Stack Overflow or by Jim Hurne
Published on 2010-05-08T02:34:26Z Indexed on 2010/05/08 2:38 UTC
Read the original article Hit count: 346

In languages that support exception objects (Java, C#), when is it appropriate to use error codes? Is the use of error codes ever appropriate in typical enterprise applications?

Many well-known software systems employ error codes (and a corresponding error code reference). Some examples include operating systems (Windows), databases (Oracle, DB2), and middle-ware products (WebLogic, WebSphere). What benefits do error codes provide? What are the disadvantages to using error codes?

© Stack Overflow or respective owner

Related posts about java

Related posts about c#