Error code: Difference between revisions

Content deleted Content added
No edit summary
Marudubshinki (talk | contribs)
ch cat
Line 5:
Error codes are slowly disappearing from the programmer's environment as modern [[object oriented]] [[computer languages]] replace them with [[exceptions]]. Exceptions have the advantage of being handled with explicit blocks of code, separate from the rest of the code. While it is considered poor practice, programmers often fail to check return values for error conditions, and this can cause undesirable effects as ignored error codes cause additional problems later in the program. Exceptions are implemented in such a way as to separate the error handling code from the rest of the code. Separating the error handling code makes programs easier to write, since one block of error handling code can service errors from any number of function calls. Exception handling also makes the code more readable, since it does not disrupt the flow of the code with frequent checks for error conditions.
 
[[Category:Programming bugs]]
[[category:programming]]