Search completed in 1.20 seconds.
PRErrorCode
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. ...
Install script template - Archive of obsolete content
PLID, qualifiedSecondaryFolderDLL, qualifiedSecondaryFolderXPT, PLUGIN_DESCRIPTION, COMPANY_NAME, SOFTWARE_NAME, VERSION, MIMETYPE, SUFFIX, SUFFIX_DESCRIPTION); logComment("First Install Installation: registerPLID("+HKEY_CURRENT_USER+") returned, status "+HKLM_status); if (HKCU_status != 0) { logComment("Could not write to the registry.
Errorcode="+HKCU_status); return HKCU_status; } } return 0; } /** * Function for preinstallation of plugin (FirstInstall). * You should not stop the install process because the function failed, * you still have a chance to install the plugin for the already * installed gecko browsers. * * @param dirPath directory path from getFolder * @param spaceRequired required space in kil...
...egisterPLID: registry key not writable"); return registryKeyNotWritableError; } // If we can't find the plidPath create the key if (!winreg.keyExists(plidPath)) { logComment("Moz registerPLID: creating missing key "+plidPath+"."); myRegStatus = winreg.createKey(plidPath, ""); if (myRegStatus != 0) { logComment("Moz registerPLID: Could not create the key, "+plidPath+"as expected.
Errorcode="+myRegStatus); return myRegStatus; } } // OK were done, let's write info about our plugin, path, productname, etc // Write a subkey to MozillaPlugins with our PLID //var mySetStrRC = winreg.setValueString(plidPath, plidID, dllAbsolutePath); myMozillaPluginPath = plidPath+"\\"+plidID; // For instance. SOFTWARE\MozillaPlugins\@Cycore.com/Cult3DViewer myRegStatus = winreg.createKey(p...
...bkey to MozillaPlugins with our PLID //var mySetStrRC = winreg.setValueString(plidPath, plidID, dllAbsolutePath); myMozillaPluginPath = plidPath+"\\"+plidID; // For instance. SOFTWARE\MozillaPlugins\@Cycore.com/Cult3DViewer myRegStatus = winreg.createKey(plidPath+"\\"+plidID, ""); if (myRegStatus != 0) { logComment("Moz registerPLID: could not create the subkey "+plidID+" to "+plidPath+".
Errorcode="+myRegStatus); return myRegStatus; } // Write path to DLL myRegStatus = winreg.setValueString(myMozillaPluginPath, "Path", dllAbsolutePath); if (myRegStatus != 0) { logComment("Moz registerPLID: Could not write the DLL path value. RegPath="+myMozillaPluginPath+", DLLPath="+dllAbsolutePath+".
ErrorCode="+myRegStatus); return myRegStatus; } // Write XPTPath myRegStatus = winreg.se...
...And 10 more matches
Using IndexedDB - Web APIs
the upgradeneeded event trigger. So for example, don't use 2.4 as a version number: var request = indexedDB.open("MyTestDatabase", 2.4); // don't do this, as the version will be rounded to 2 Generating handlers The first thing you'll want to do with almost all of the requests you generate is to add success and error handlers: request.onerror = function(event) { // Do something with request.
errorCode! }; request.onsuccess = function(event) { // Do something with request.result! }; Which of the two functions, onsuccess() or onerror(), gets called? If everything succeeds, a success event (that is, a DOM event whose type property is set to "success") is fired with request as its target. Once it is fired, the onsuccess() function on request is triggered with the success event as its argument. ...
... the error, then the event bubbles to the transaction, and then finally to the database object. If you want to avoid adding error handlers to every request, you can instead add a single error handler on the database object, like so: db.onerror = function(event) { // Generic error handler for all errors targeted at this database's // requests! console.error("Database error: " + event.target.
errorCode); }; One of the common possible errors when opening a database is VER_ERR. It indicates that the version of the database stored on the disk is greater than the version that you are trying to open. This is an error case that must always be handled by the error handler. Creating or updating the version of the database When you create a new database or increase the version number of an existing ...
...h view is displayed to avoid uselessly reloading it var current_view_pub_key; function openDb() { console.log("openDb ..."); var req = indexedDB.open(DB_NAME, DB_VERSION); req.onsuccess = function (evt) { // Equal to: db = req.result; db = this.result; console.log("openDb DONE"); }; req.onerror = function (evt) { console.error("openDb:", evt.target.
errorCode); }; req.onupgradeneeded = function (evt) { console.log("openDb.onupgradeneeded"); var store = evt.currentTarget.result.createObjectStore( DB_STORE_NAME, { keyPath: 'id', autoIncrement: true }); store.createIndex('biblioid', 'biblioid', { unique: true }); store.createIndex('title', 'title', { unique: false }); store.createIndex('year', 'year', { uni...
...And 4 more matches
PR_SetError
oserr The platform-specific error. If there is no appropriate OS error number, a zero may be supplied. ...
... oserr The platform-specific error. If there is no appropriate OS error number, a zero may be supplied. ...
... oserr The platform-specific error. If there is no appropriate OS error number, a zero may be supplied. ...
NS_ConvertASCIItoUTF16
tFound Parameters PRUnichar* aString PRInt32 aOffset PRInt32 RFindCharInSet(const nsString&, PRInt32) const - source Parameters nsString& aString PRInt32 aOffset EqualsIgnoreCase PRBool EqualsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...nt32) const - source Parameters nsString& aString PRInt32 aOffset EqualsIgnoreCase PRBool EqualsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...lsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
NS_ConvertUTF16toUTF8
reCase(const char*, PRInt32) const - source Equality check between given string and this string. @param aString is the string to check @param aIgnoreCase tells us how to treat case @param aCount tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...@param aString is the string to check @param aIgnoreCase tells us how to treat case @param aCount tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
NS_ConvertUTF8toUTF16
tFound Parameters PRUnichar* aString PRInt32 aOffset PRInt32 RFindCharInSet(const nsString&, PRInt32) const - source Parameters nsString& aString PRInt32 aOffset EqualsIgnoreCase PRBool EqualsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...nt32) const - source Parameters nsString& aString PRInt32 aOffset EqualsIgnoreCase PRBool EqualsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...lsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
NS_LossyConvertUTF16toASCII
reCase(const char*, PRInt32) const - source Equality check between given string and this string. @param aString is the string to check @param aIgnoreCase tells us how to treat case @param aCount tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...@param aString is the string to check @param aIgnoreCase tells us how to treat case @param aCount tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
nsAdoptingCString
reCase(const char*, PRInt32) const - source Equality check between given string and this string. @param aString is the string to check @param aIgnoreCase tells us how to treat case @param aCount tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...@param aString is the string to check @param aIgnoreCase tells us how to treat case @param aCount tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
nsAdoptingString
tFound Parameters PRUnichar* aString PRInt32 aOffset PRInt32 RFindCharInSet(const nsString&, PRInt32) const - source Parameters nsString& aString PRInt32 aOffset EqualsIgnoreCase PRBool EqualsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...nt32) const - source Parameters nsString& aString PRInt32 aOffset EqualsIgnoreCase PRBool EqualsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...lsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
nsAutoString
tFound Parameters PRUnichar* aString PRInt32 aOffset PRInt32 RFindCharInSet(const nsString&, PRInt32) const - source Parameters nsString& aString PRInt32 aOffset EqualsIgnoreCase PRBool EqualsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...nt32) const - source Parameters nsString& aString PRInt32 aOffset EqualsIgnoreCase PRBool EqualsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...lsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
nsCAutoString
har*, PRInt32) const - source Equality check between given string and this string. @param aString is the string to check @param aIgnoreCase tells us how to treat case @param aCount tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
... the string to check @param aIgnoreCase tells us how to treat case @param aCount tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...ompare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
nsCString
reCase(const char*, PRInt32) const - source Equality check between given string and this string. @param aString is the string to check @param aIgnoreCase tells us how to treat case @param aCount tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...@param aString is the string to check @param aIgnoreCase tells us how to treat case @param aCount tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
nsDependentCString
reCase(const char*, PRInt32) const - source Equality check between given string and this string. @param aString is the string to check @param aIgnoreCase tells us how to treat case @param aCount tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...@param aString is the string to check @param aIgnoreCase tells us how to treat case @param aCount tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
nsDependentString
tFound Parameters PRUnichar* aString PRInt32 aOffset PRInt32 RFindCharInSet(const nsString&, PRInt32) const - source Parameters nsString& aString PRInt32 aOffset EqualsIgnoreCase PRBool EqualsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...nt32) const - source Parameters nsString& aString PRInt32 aOffset EqualsIgnoreCase PRBool EqualsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...lsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
nsFixedCString
reCase(const char*, PRInt32) const - source Equality check between given string and this string. @param aString is the string to check @param aIgnoreCase tells us how to treat case @param aCount tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...@param aString is the string to check @param aIgnoreCase tells us how to treat case @param aCount tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
nsFixedString
tFound Parameters PRUnichar* aString PRInt32 aOffset PRInt32 RFindCharInSet(const nsString&, PRInt32) const - source Parameters nsString& aString PRInt32 aOffset EqualsIgnoreCase PRBool EqualsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...nt32) const - source Parameters nsString& aString PRInt32 aOffset EqualsIgnoreCase PRBool EqualsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...lsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
nsPromiseFlatCString
reCase(const char*, PRInt32) const - source Equality check between given string and this string. @param aString is the string to check @param aIgnoreCase tells us how to treat case @param aCount tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...@param aString is the string to check @param aIgnoreCase tells us how to treat case @param aCount tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
nsPromiseFlatString
tFound Parameters PRUnichar* aString PRInt32 aOffset PRInt32 RFindCharInSet(const nsString&, PRInt32) const - source Parameters nsString& aString PRInt32 aOffset EqualsIgnoreCase PRBool EqualsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...nt32) const - source Parameters nsString& aString PRInt32 aOffset EqualsIgnoreCase PRBool EqualsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...lsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
nsString
tFound Parameters PRUnichar* aString PRInt32 aOffset PRInt32 RFindCharInSet(const nsString&, PRInt32) const - source Parameters nsString& aString PRInt32 aOffset EqualsIgnoreCase PRBool EqualsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...nt32) const - source Parameters nsString& aString PRInt32 aOffset EqualsIgnoreCase PRBool EqualsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...lsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
nsXPIDLCString
reCase(const char*, PRInt32) const - source Equality check between given string and this string. @param aString is the string to check @param aIgnoreCase tells us how to treat case @param aCount tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...@param aString is the string to check @param aIgnoreCase tells us how to treat case @param aCount tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...tells us how many chars to compare @return boolean Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
nsXPIDLString
tFound Parameters PRUnichar* aString PRInt32 aOffset PRInt32 RFindCharInSet(const nsString&, PRInt32) const - source Parameters nsString& aString PRInt32 aOffset EqualsIgnoreCase PRBool EqualsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...nt32) const - source Parameters nsString& aString PRInt32 aOffset EqualsIgnoreCase PRBool EqualsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
...lsIgnoreCase(const char*, PRInt32) const - source Parameters char* aString PRInt32 aCount ToFloat float ToFloat(PRInt32*) const - source Perform string to float conversion. ...
sample2
On earlier versions of nss that * don't support error tables, PR_ErrorToString will return "Unknown code". */ #ifndef PORT_ErrorToString #define PORT_ErrorToString(err) PR_ErrorToString((err), PR_LANGUAGE_I_DEFAULT) #endif /* sample 6 commands */ typedef enum { GENERATE_CSR, ADD_CERT_TO_DB, SAVE_CERT_TO_HEADER, ENCRYPT, DECRYPT, SIGN, VERIFY,...
...d to locate private key.\n"); rv = SECFailure; goto cleanup; } } certDER = SignCert(handle, subjectCert, selfsign, hashAlgTag, *selfsignprivkey, issuerNickName,pwarg); if (certDER) { if (ascii) { PR_fprintf(outFile, "%s\n%s\n%s\n", NS_CERT_HEADER, BTOA_DataToAscii(certDER->data, certDER->len), NS_CERT_TRAILER); } else { PR_Write(outFile, certDER->data, certDER->len); } } if (rv != SECSuccess) { PR
ErrorCode perr = PR_GetError(); PR_fprintf(PR_STDERR, "unable to create cert %s\n", perr); } cleanup: if (outFile) { PR_Close(outFile); } if (*selfsignprivkey) { SECKEY_DestroyPrivateKey(*selfsignprivkey); } if (certReq) { CERT_DestroyCertificateRequest(certReq); } if (subjectCert) { CERT_DestroyCertificate(subjectCert); } return rv; } /* * Generate the certificate request with subject */ static SECStatus ...
NS ConvertASCIItoUTF16 external
he string, or -1 if not found. ...
... void AppendInt(int, PRInt32) - source Append a string representation of a number. ...
NS ConvertUTF16toUTF8 external
of the string, or -1 if not found. ...
... void AppendInt(int, PRInt32) - source Append a string representation of a number. ...
NS ConvertUTF8toUTF16 external
he string, or -1 if not found. ...
... void AppendInt(int, PRInt32) - source Append a string representation of a number. ...
PromiseFlatCString (External)
of the string, or -1 if not found. ...
... void AppendInt(int, PRInt32) - source Append a string representation of a number. ...
PromiseFlatString (External)
he string, or -1 if not found. ...
... void AppendInt(int, PRInt32) - source Append a string representation of a number. ...
nsACString (External)
of the string, or -1 if not found. ...
... void AppendInt(int, PRInt32) - source Append a string representation of a number. ...
nsAString (External)
ce of a character in a string. @return The offset of the character from the beginning of the string, or -1 if not found. ...
...ring, or -1 if not found. Parameters PRUnichar aChar AppendInt void AppendInt(int, PRInt32) - source Append a string representation of a number. ...
nsAutoString (External)
he string, or -1 if not found. ...
... void AppendInt(int, PRInt32) - source Append a string representation of a number. ...
nsCAutoString (External)
of the string, or -1 if not found. ...
... void AppendInt(int, PRInt32) - source Append a string representation of a number. ...
nsCStringContainer (External)
of the string, or -1 if not found. ...
... void AppendInt(int, PRInt32) - source Append a string representation of a number. ...
nsCString external
of the string, or -1 if not found. ...
... void AppendInt(int, PRInt32) - source Append a string representation of a number. ...
nsDependentCString external
of the string, or -1 if not found. ...
... void AppendInt(int, PRInt32) - source Append a string representation of a number. ...
nsDependentCSubstring external
of the string, or -1 if not found. ...
... void AppendInt(int, PRInt32) - source Append a string representation of a number. ...
nsDependentString external
he string, or -1 if not found. ...
... void AppendInt(int, PRInt32) - source Append a string representation of a number. ...
nsDependentSubstring external
he string, or -1 if not found. ...
... void AppendInt(int, PRInt32) - source Append a string representation of a number. ...
nsLiteralCString (External)
of the string, or -1 if not found. ...
... void AppendInt(int, PRInt32) - source Append a string representation of a number. ...
nsLiteralString (External)
of the string, or -1 if not found. ...
... void AppendInt(int, PRInt32) - source Append a string representation of a number. ...
nsStringContainer (External)
he string, or -1 if not found. ...
... void AppendInt(int, PRInt32) - source Append a string representation of a number. ...
nsString external
he string, or -1 if not found. ...
... void AppendInt(int, PRInt32) - source Append a string representation of a number. ...
RTCPeerConnection: icecandidateerror event - Web APIs
ming ICE negotiations through a STUN or TURN server. The event object is of type RTCPeerConnectionIceErrorEvent, and contains information describing the error in some amount of detail. Bubbles No Cancelable No Interface RTCPeerConnectionIceErrorEvent Event handler property RTCPeerConnection.onicecandidateerror Description The error object's
errorCode property is one of the numeric STUN error codes. There is one additional, WebRTC-specific, error which lies outside the valid STUN error code range: 701. Error 701 indicates that none of the ICE candidates were able to successfully make contact with the STUN or TURN server. The 701 error is fired only once per server URL from the list of available STUN or TURN servers provided when creating the ...
...er for icecandidateerrors that occur on the RTCPeerConnection pc. This handler looks specifically for 701 errors that indicate that candidates couldn't reach the STUN or TURN server. When this happens, the server URL and the error message are passed to a function called reportConnectFail() to log or output the connection failure. pc.addEventListener("icecandidateerror", (event) => { if (event.
errorCode === 701) { reportConnectFail(event.url, event.errorText); } }); Note that if multiple STUN and/or TURN servers are provided when creating the connection, this error may happen more than once, if more than one of those servers fails. Each provided server is tried until a connection is established. Specifications Specification Status Comment WebRTC 1.0: Real-time C...
cancelInstall - Archive of obsolete content
Summary Aborts installation of the software; performs cleanup of temporary files. Method of Install object Syntax void cancelInstall() void cancelInstall( int
errorCode ) Parameters None. Returns An integer error code. The optional argument is an error code that can be returned to the triggering page. For most purposes, it's recommended that one of the standard return codes be used. But a script can, in fact, return any valid integer. For a list of possible values, and any custom
errorCode created by install writer, see Return Codes. Example Use the following code to abort or to finalize an installation, based on a variable you set earlier in your code: initInstall("Royal Airways TripPlanner","/RoyalAirways/ TripPlanner","1.0.0.0"); ... err = getLastError(); if (!err) performIn...
NSPR Error Handling
This chapter describes the functions for retrieving and setting errors and the error codes set by NSPR. Error Type Error Functions Error Codes For information on naming conventions for NSPR types, functions, and macros, see NSPR Naming Conventions. Error Type PR
ErrorCode Error Functions PR_SetError PR_SetErrorText PR_GetError PR_GetOSError PR_GetErrorTextLength PR_GetErrorText Error Codes Error codes defined in prerror.h: PR_OUT_OF_MEMORY_ERROR Insufficient memory to perform request. PR_BAD_DESCRIPTOR_ERROR The file descriptor used as an argument in the preceding function is invalid. PR_WOULD_BLOCK_ERROR The operation would have blocked, which conflicts with the semantics that have been established. PR_ACCESS_FAULT_ERROR One of the arguments of the preceding funct...
PRJobIoDesc
Syntax #include <prtpool.h> typedef struct PRJobIoDesc { PRFileDesc *socket; PR
ErrorCode error; PRIntervalTime timeout; } PRJobIoDesc; ...
PR_GetError
Returns the current thread's last set platform-independent error code. Syntax #include <prerror.h> PR
ErrorCode PR_GetError(void) Returns 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. ...
Enc Dec MAC Using Key Wrap CertReq PKCS10 CSR
*selfsignprivkey, issuerNickName,pwarg); if (certDER) { if (ascii) { PR_fprintf(outFile, "%s\n%s\n%s\n", NS_CERT_HEADER, BTOA_DataToAscii(certDER->data, certDER->len), NS_CERT_TRAILER); } else { PR_Write(outFile, certDER->data, certDER->len); } } if (rv != SECSuccess) { PR
ErrorCode perr = PR_GetError(); PR_fprintf(PR_STDERR, "unable to create cert %s\n", perr); } cleanup: if (outFile) { PR_Close(outFile); } if (*selfsignprivkey) { SECKEY_DestroyPrivateKey(*selfsignprivkey); } if (certReq) { CERT_DestroyCertificateRequest(certReq); } if (subjectCert) { CERT_DestroyCerti...
nsIUpdate
ilsURL AString The URL to a page which offers details about the content of this update. Ideally, this page is not the release notes but some other page that summarizes the differences between this update and the previous, which also links to the release notes. displayVersion AString The string to display in the user interface for the version. If you want a real version number use appVersion.
errorCode long A numeric error code that conveys additional information about the state of a failed update or failed certificate attribute check during an update check. If the update is not in the "failed" state, this value is zero. OK (0) No error. MEM_ERROR (1) A memory error occurred. USAGE_ERROR (3) A usage error occurred; this needs to be described in more detail. CRC_ERROR (4) A checksum error occur...
WebIDL bindings
Error with the given error message. The list of allowed TypeErrors and corresponding messages is in dom/bindings/Errors.msg. ThrowJSException: allows throwing a preexisting JS exception value. However, the MightThrowJSException() method must be called before any such exceptions are thrown (even if no exception is thrown). Failed: checks whether an exception has been thrown on this ErrorResult.
ErrorCode: returns a failure nsresult representing (perhaps incompletely) the state of this ErrorResult. operator=: takes an nsresult and acts like Throw if the result is an error code, and like a no-op otherwise (unless an exception has already been thrown, in which case it asserts). This should only be used for legacy code that has nsresult everywhere; we would like to get rid of this operator at some p...
Basic concepts - Web APIs
, but there are sanity measures baked in. It's not that different from the way that XMLHttpRequest works. IndexedDB uses a lot of requests. Requests are objects that receive the success or failure DOM events that were mentioned previously. They have onsuccess and onerror properties, and you can call addEventListener() and removeEventListener() on them. They also have readyState, result, and
errorCode properties that tell you the status of the request. The result property is particularly magical, as it can be many different things, depending on how the request was generated (for example, an IDBCursor instance, or the key for a value that you just inserted into the database). IndexedDB uses DOM events to notify you when results are available. DOM events always have a type property (in Ind...
RTCPeerConnection.onicecandidateerror - Web APIs
ering process. Syntax RTCPeerConnection.onicecandidateerror = eventHandler; Value This should be set to a function you provide which is passed a single parameter: an RTCPeerConnectionIceErrorEvent object describing the icecandidateerror event. The event offers properties describing the error to help you handle it appropriately. Example pc.onicecandidateerror = function(event) { if (event.
errorCode >= 300 && event.
errorCode <= 699) { // STUN errors are in the range 300-699. See RFC 5389, section 15.6 // for a list of codes. TURN adds a few more error codes; see // RFC 5766, section 15 for details. } else if (event.
errorCode >= 700 && event.
errorCode <= 799) { // Server could not be reached; a specific error number is // provided but these are not yet specified. } } ...
RTCPeerConnectionIceErrorEvent - Web APIs
f. Properties The RTCPeerConnectionIceErrorEvent interface includes the properties found on the Event interface, as well as the following properties: address Read only A DOMString providing the local IP address used to communicate with the STUN or TURN server being used to negotiate the connection, or null if the local IP address has not yet been exposed as part of a local ICE candidate.
errorCode Read only An unsigned integer value stating the numeric STUN error code returned by the STUN or TURN server. If no host candidate can reach the server, this property is set to the number 701, which is outside the range of valid STUN error codes. The 701 error is fired only once per server URL, and only while the is icegatheringstate is gathering. errorText Read only A DOMString containing th...