1
0
Fork 0
firefox/docs/nspr/reference/pr_seterror.rst
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

35 lines
617 B
ReStructuredText

PR_SetError
===========
Sets error information within a thread context.
Syntax
------
.. code::
#include <prerror.h>
void PR_SetError(PRErrorCode errorCode, PRInt32 oserr)
Parameters
~~~~~~~~~~
The function has these parameters:
``errorCode``
The NSPR (platform-independent) translation of the error.
``oserr``
The platform-specific error. If there is no appropriate OS error
number, a zero may be supplied.
Description
-----------
NSPR does not validate the value of the error number or OS error number
being specified. The runtime merely stores the value and returns it when
requested.