prerrorcode.rst (815B)
1 PRErrorCode 2 =========== 3 4 5 Type for error codes that can be retrieved with :ref:`PR_GetError`. You can 6 also set your own errors using :ref:`PR_SetError`. 7 8 9 Syntax 10 ------ 11 12 .. code:: 13 14 #include <prerror.h> 15 16 typedef PRInt32 PRErrorCode 17 18 19 Description 20 ----------- 21 22 The service NSPR offers in this area is the ability to associate a 23 thread-specific condition with an error number. The error number 24 namespace is not well managed. NSPR assumes error numbers starting at 25 -6000 (decimal) and progressing towards zero. At present less than 100 26 error codes have been defined. If NSPR's error handling is adopted by 27 calling clients, then some sort of partitioning of the namespace will 28 have to be employed. NSPR does not attempt to address this issue. 29 30 For NSPR errors, see `Error Codes <NSPR_Error_Handling#Error_Code>`__.