rem: try { if (!gPromptService) { gPromptService = Components.classes[ "@mozilla.org/embedcomp/prompt-service;1"].getService(). QueryInterface(Components.interfaces.nsIPromptService); } } catch (ex) { }  
context: function awRecipientErrorCommand(errItem, element){    // remove the angle brackets from the general error message to construct     // the title for the alert.  someday we'll pass this info using a real    // exception object, and then this code can go away.    //    var generalErrString;    if (errItem.value != "") {	generalErrString = errItem.value.slice(1, errItem.value.length-1);    } else {	generalErrString = "Unknown LDAP server problem encountered";    }	    // try and get the string of the specific error to contruct the complete    // err msg, otherwise fall back to something generic.  This message is    // handed to us as an nsISupportsWString in the param slot of the     // autocomplete error item, by agreement documented in     // nsILDAPAutoCompFormatter.idl    //    var specificErrString = "";    try {	var specificError = errItem.param.QueryInterface(	    Components.interfaces.nsISupportsWString);	specificErrString = specificError.data;    } catch (ex) {    }    if (specificErrString == "") {	specificErrString = "Internal error";    }    try {	if (!gPromptService) {	    gPromptService = Components.classes[		"@mozilla.org/embedcomp/prompt-service;1"].getService().		QueryInterface(Components.interfaces.nsIPromptService);	}    } catch (ex) {    }    if (gPromptService) {	gPromptService.alert(window, generalErrString, specificErrString);    } else {	window.alert(generalErrString + ": " + specificErrString);    }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/fc756976caf9a570751ca43fe3a185e7c7682a88/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js