PRErrorCode 编辑
Type for error codes that can be retrieved with /wiki/en-US/docs/Mozilla/Projects/NSPR/Reference/PR_GetError
. You can also set your own errors using /wiki/en-US/docs/Mozilla/Projects/NSPR/Reference/PR_SetError
.
Syntax
#include <prerror.h> typedef PRInt32 PRErrorCode
Description
The service NSPR offers in this area is the ability to associate a thread-specific condition with an error number. The error number namespace is not well managed. NSPR assumes error numbers starting at -6000 (decimal) and progressing towards zero. At present less than 100 error codes have been defined. If NSPR's error handling is adopted by calling clients, then some sort of partitioning of the namespace will have to be employed. NSPR does not attempt to address this issue.
For NSPR errors, see Error Codes.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论