MDN’s new design is in Beta! A sneak peek:

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


#include <prerror.h>

PRErrorCode PR_GetError(void)


The value returned is a 32-bit number. NSPR provides no direct interpretation of the number's value. NSPR does use PR_SetError to set error numbers defined in Error Codes.

Document Tags and Contributors

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