case Components.results.NS_OK: 
case NS_OK: 
function errorToString(err){    if (err) {        if (typeof(err) == "string")            return err;        if (err instanceof Error)            return err.message;        if (err instanceof nsIException)            return err.toString(); // xxx todo: or just message?        if (isNaN(err))            return ("[" + err + "] unknown error.");    }    // numeric codes:    switch (err) {    case undefined:    case null:    case Components.results.NS_OK:        return "NS_OK";    case Components.results.NS_ERROR_INVALID_ARG:        return "NS_ERROR_INVALID_ARG";    case Components.results.NS_ERROR_NO_INTERFACE:        return "NS_ERROR_NO_INTERFACE";    case Components.results.NS_ERROR_NOT_IMPLEMENTED:        return "NS_ERROR_NOT_IMPLEMENTED";    case Components.results.NS_ERROR_NOT_AVAILABLE:        return "NS_ERROR_NOT_AVAILABLE";    case Components.results.NS_ERROR_FAILURE:        return "NS_ERROR_FAILURE";    case Components.results.NS_ERROR_BASE:        return "NS_ERROR_BASE";    case Components.results.NS_ERROR_NOT_INITIALIZED:        return "NS_ERROR_NOT_INITIALIZED";    case Components.results.NS_ERROR_ALREADY_INITIALIZED:        return "NS_ERROR_ALREADY_INITIALIZED";    case Components.results.NS_ERROR_NULL_POINTER:        return "NS_ERROR_NULL_POINTER";    case Components.results.NS_ERROR_ABORT:        return "NS_ERROR_ABORT";    case Components.results.NS_ERROR_UNEXPECTED:        return "NS_ERROR_UNEXPECTED";    case Components.results.NS_ERROR_OUT_OF_MEMORY:        return "NS_ERROR_OUT_OF_MEMORY";    case Components.results.NS_ERROR_ILLEGAL_VALUE:        return "NS_ERROR_ILLEGAL_VALUE";    default:        // probe for WCAP error:        try {            return wcapErrorToString(err);        }        catch (exc) { // probe for netwerk error:            try {                return netErrorToString(err);            }            catch (exc) {                return ("[0x" + err.toString(0x10) + "] unknown error.");            }        }    }}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/64fa0031c18ffbcccb6d772168cab3b330d991f6/calWcapErrors.js/clean/calendar/providers/wcap/calWcapErrors.js