summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/pr_geterror.rst
blob: 9a50d8aacccae5f96b853dbc24e62c0652c356e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
PR_GetError
===========

Returns the current thread's last set platform-independent error code.


Syntax
------

.. code::

   #include <prerror.h>

   PRErrorCode PR_GetError(void)


Returns
~~~~~~~

The value returned is a 32-bit number. NSPR provides no direct
interpretation of the number's value. NSPR does use :ref:`PR_SetError` to
set error numbers defined in `Error
Codes <NSPR_Error_Handling#Error_Code>`__.