WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsINSSErrorsService

IID:3a5c7a0f-f5da-4a8b-a748-d7c5a528f33b
Inherits From:nsISupports

Constants

PRUint32 ERROR_CLASS_SSL_PROTOCOL = 1
PRUint32 ERROR_CLASS_BAD_CERT = 2
The following values define the range of NSPR error codes used by NSS. NSS remains the authorative source for these numbers, as a result, the values might change in the future. The security module will perform a runtime check and assertion to ensure the values are in synch with NSS.
PRInt32 NSS_SEC_ERROR_BASE = -8192
PRInt32 NSS_SEC_ERROR_LIMIT = -7192
PRInt32 NSS_SSL_ERROR_BASE = -12288
PRInt32 NSS_SSL_ERROR_LIMIT = -11288

Methods

PRUint32 getErrorClass ( nsresult XPCOMErrorCode ) AString getErrorMessage ( nsresult XPCOMErrorCode ) nsresult getXPCOMFromNSSError ( PRInt32 NSPRCode ) PRBool isNSSErrorCode ( PRInt32 NSPRCode )

PRUint32 getErrorClass ( nsresult XPCOMErrorCode )

Function will fail if xPCOMErrorCode is not an NSS error code.

Arguments:
XPCOMErrorCode: An error code obtain using getXPCOMFromNSSError return the

AString getErrorMessage ( nsresult XPCOMErrorCode )

Function will fail if xPCOMErrorCode is not an NSS error code.

Arguments:
XPCOMErrorCode: An error code obtain using getXPCOMFromNSSError return A localized human readable error explanation.

nsresult getXPCOMFromNSSError ( PRInt32 NSPRCode )

Function will fail if nSPRCode is not an NSS error code.

Arguments:
NSPRCode: An error code obtained using PR_GetError()
Returns:
The result of the conversion, an XPCOM error code

PRBool isNSSErrorCode ( PRInt32 NSPRCode )

Arguments:
NSPRCode: An error code obtained using PR_GetError()
Returns:
True if it is error code defined by the NSS library

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com