Content deleted Content added
m General cleanup. →See also: Alphabetize per MOS:SEEALSO. →External links: Rm dead external links per WP:ELDEAD. |
m Rm sentence-fragment periods per MOS:CAPTION. Personal websites and blogs aren't reliable sources per WP:SPS. |
||
Line 1:
{{Short description|Code that indicates the nature of an error}}
{{
In [[computing]], an '''error code''' (or a '''return code
== In consumer products ==
[[File:Error-code-e74.jpg|thumb|upright=1.3|alt=The error code E74. Above the large E 74 code is the message "System Error. Contact Xbox Customer Support." repeated in different languages.|Error E74 on the [[Xbox 360]], indicating a hardware failure
Error codes are commonly encountered on displays of consumer electronics to users in order to communicate or specify an error. They are commonly reported by consumer electronics when users bring electronics to perform tasks that they cannot do (e.g., [[Division by zero|dividing by zero]]), or when the program within a device encounters an anomalous condition.
Line 19:
Different programming languages, operating systems, and programming environments often have their own conventions and standards for the meanings and values of error codes. Examples include:
* [[Linux]] defines its own [[errno.h]] header file, containing the meanings and values of error codes returned by [[
* [[Windows API|Microsoft Windows' application programming interfaces (APIs)]] have several different standards for error code values, depending on the specific API being used.
The usage of error codes as an error handling strategy is often contrasted against using [[Exception handling|exceptions]] for error handling.<ref>{{Cite web |last=TylerMSFT |title=Modern C++ best practices for exceptions and error handling |url=https://learn.microsoft.com/en-us/cpp/cpp/errors-and-exception-handling-modern-cpp |access-date=2023-03-12 |website=
==In communication protocols==
|