Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

PR_SetError

Sets error information within a thread context.

Syntax

#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.

Document Tags and Contributors

 Contributors to this page: teoli, Callek, Rappo
 Last updated by: teoli,