Example: Using a Variety of Ways to Detect Errors and Handle Exceptions

The following example shows a number of ways to handle errors, including:
  • Checking the major/minor return code
  • Checking errno
  • Getting error information from the _EXCP_MSGID global variable
  • Signal handling with signal