ChatterService.Web.ChatterProxyService.HandleError C# (CSharp) Method

HandleError() public method

public HandleError ( Exception error, string key ) : bool
error System.Exception
key string
return bool
        public bool HandleError(Exception error, string key)
        {
            WriteLogToFile(error.Message);

            // remove what we think may be stale
            if (key != null && key.Trim().Length > 0)
            {
                // force the ChatterSoapService to logout in this situation.
                Object o = HttpRuntime.Cache.Remove(key);
            }
            // Returning true indicates you performed your behavior.
            return true;
        }