tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

pr_seterror.rst (617B)


      1 PR_SetError
      2 ===========
      3 
      4 Sets error information within a thread context.
      5 
      6 
      7 Syntax
      8 ------
      9 
     10 .. code::
     11 
     12   #include <prerror.h>
     13 
     14   void PR_SetError(PRErrorCode errorCode, PRInt32 oserr)
     15 
     16 
     17 Parameters
     18 ~~~~~~~~~~
     19 
     20 The function has these parameters:
     21 
     22 ``errorCode``
     23   The NSPR (platform-independent) translation of the error.
     24 
     25 ``oserr``
     26   The platform-specific error. If there is no appropriate OS error
     27   number, a zero may be supplied.
     28 
     29 
     30 Description
     31 -----------
     32 
     33 NSPR does not validate the value of the error number or OS error number
     34 being specified. The runtime merely stores the value and returns it when
     35 requested.