OS/2 System Exception Codes

Exception values are 32-bit values laid out as follows:

   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
   1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
   ┌───┬─┬─────────────────────────┬───────────────────────────────┐
   │Sev│C│       Facility          │               Code            │
   └───┴─┴─────────────────────────┴───────────────────────────────┘

   where

       Sev - is the severity code
           00 - Success
           01 - Informational
           10 - Warning
           11 - Error

       C - is the Customer code flag

       Facility - is the facility code

       Code - is the facility's status code

   Exceptions specific to OS/2 2.0 (e.g. XCPT_SIGNAL) will be marked
   with a facility code of 1.