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