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

NS_ERROR

Summary

Macro

Throws a assertion (NS_ASSERTION) with the text "Error: (error text)", so writes this text to console (stderr) and to debug logs (NSPR logging). This macro is meant for critical errors; like assertions, NS_ERRORs should not be reachable.

Syntax

NS_ERROR("error text");

See also

Document Tags and Contributors

 Contributors to this page: teoli, Sheppy, RuiMaciel, Biesi, Editmonkey
 Last updated by: Sheppy,