fbpx
Wikipedia

Error code

Error[1][2] computing, an error code (or a return code) is a numeric or alphanumeric code that indicates the nature of an error and, when possible, why it occurred.[3] Error codes can be reported to end users of software, returned from communication protocols, or used within programs as a method of representing anomalous conditions.

In consumer products Edit

 
Error E74 on the Xbox 360, indicating a hardware failure[4]

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., dividing by zero), or when the program within a device encounters an anomalous condition.

Error codes reported by consumer electronics are used to help diagnose and repair technical problems. An error code can be communicated to relevant support staff to identify potential fixes, or can simplify research into the cause of an error.

There is no definitive format for error codes, meaning that error codes typically differ from/between products and or companies.

In computer programming Edit

Error codes in computers can be passed to the system itself, to judge how to respond to the error. Often error codes come synonymous with an exit code or a return value. The system may also choose to pass the error code to its user(s). The Blue screen of death is an example of how the Windows operating system communicates error codes to the user.

Error codes can be used within a computer program to represent an anomalous condition. A computer program can take different actions depending on the value of an error code.

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:

The usage of error codes as an error handling strategy is often contrasted against using exceptions for error handling.[8][2]

In communication protocols Edit

Communication protocols typically define a standard set of error codes, as a means of communicating the status or result of an operation between the entities in the system.

Several high-level protocols in the TCP/IP stack, such as HTTP, FTP, and SMTP, define their own standard sets of error codes:

In automobiles Edit

Error codes in automobiles, sometimes referred to as trouble codes, indicate to a driver or car mechanic what is wrong with a vehicle before repairs are initiated.[citation needed]

In vehicles with CAN buses, error codes are often five-digit codes that pinpoint a particular car fault. Car owners can make use of an on-board diagnostics scanner or an owner's manual to identify the meaning of a trouble code. Five-digit diagnostic trouble codes typically consist of one letter and four numbers (e.g. P0123).[citation needed]

See also Edit

References Edit

  1. ^ a b errno(3) – Linux Programmer's Manual – Library Functions
  2. ^ a b "Standard C++". IsoCpp.org. Retrieved 2023-03-12.
  3. ^ "What is an Error Code?". ComputerHope.com. Retrieved 2020-01-22.
  4. ^ "Xbox Support". support.xbox.com. Retrieved 2023-03-12.
  5. ^ intro(2) – Version 7 Unix Programmer's Manual
  6. ^ intro(2) – Solaris 11.4 System Calls Reference Manual
  7. ^ "[MS-ERREF]: Overview". learn.microsoft.com. Retrieved 2023-03-12.
  8. ^ TylerMSFT. "Modern C++ best practices for exceptions and error handling". Learn.Microsoft.com. Retrieved 2023-03-12.

External links Edit

  • Microsoft system error codes
  • Microsoft Device Manager error codes

error, code, confused, with, error, correction, code, error, computing, error, code, return, code, numeric, alphanumeric, code, that, indicates, nature, error, when, possible, occurred, reported, users, software, returned, from, communication, protocols, used,. Not to be confused with Error correction code Error 1 2 computing an error code or a return code is a numeric or alphanumeric code that indicates the nature of an error and when possible why it occurred 3 Error codes can be reported to end users of software returned from communication protocols or used within programs as a method of representing anomalous conditions Contents 1 In consumer products 2 In computer programming 3 In communication protocols 4 In automobiles 5 See also 6 References 7 External linksIn consumer products Edit Error E74 on the Xbox 360 indicating a hardware failure 4 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 dividing by zero or when the program within a device encounters an anomalous condition Error codes reported by consumer electronics are used to help diagnose and repair technical problems An error code can be communicated to relevant support staff to identify potential fixes or can simplify research into the cause of an error There is no definitive format for error codes meaning that error codes typically differ from between products and or companies In computer programming EditError codes in computers can be passed to the system itself to judge how to respond to the error Often error codes come synonymous with an exit code or a return value The system may also choose to pass the error code to its user s The Blue screen of death is an example of how the Windows operating system communicates error codes to the user Error codes can be used within a computer program to represent an anomalous condition A computer program can take different actions depending on the value of an error code 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 Unix like systems have an errno h header file that contains the meanings and values of error codes returned by system calls and library functions 5 1 6 Microsoft Windows application programming interfaces APIs have several different standards for error code values depending on the specific API being used 7 The usage of error codes as an error handling strategy is often contrasted against using exceptions for error handling 8 2 In communication protocols EditCommunication protocols typically define a standard set of error codes as a means of communicating the status or result of an operation between the entities in the system Several high level protocols in the TCP IP stack such as HTTP FTP and SMTP define their own standard sets of error codes List of HTTP status codes List of FTP server return codes Simple Mail Transfer Protocol Protocol overviewIn automobiles EditError codes in automobiles sometimes referred to as trouble codes indicate to a driver or car mechanic what is wrong with a vehicle before repairs are initiated citation needed In vehicles with CAN buses error codes are often five digit codes that pinpoint a particular car fault Car owners can make use of an on board diagnostics scanner or an owner s manual to identify the meaning of a trouble code Five digit diagnostic trouble codes typically consist of one letter and four numbers e g P0123 citation needed See also EditAbort computing Aspect oriented programming Blue Screen of Death errno h a header file in C that defines macros for reporting errors Exit status Failure HRESULT a computer programming data type used for error codes Static code analysisReferences Edit a b errno 3 Linux Programmer s Manual Library Functions a b Standard C IsoCpp org Retrieved 2023 03 12 What is an Error Code ComputerHope com Retrieved 2020 01 22 Xbox Support support xbox com Retrieved 2023 03 12 intro 2 Version 7 Unix Programmer s Manual intro 2 Solaris 11 4 System Calls Reference Manual MS ERREF Overview learn microsoft com Retrieved 2023 03 12 TylerMSFT Modern C best practices for exceptions and error handling Learn Microsoft com Retrieved 2023 03 12 External links EditMicrosoft system error codes Microsoft Device Manager error codes Retrieved from https en wikipedia org w index php title Error code amp oldid 1170538052, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.