Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at


Gets the length of the error text.


#include <prerror.h>

PRInt32 PR_GetErrorTextLength(void)


If a zero is returned, no error text is currently set. Otherwise, the value returned is sufficient to contain the error text currently available.

Document Tags and Contributors

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