Appspotdemo.Mono.Droid.UnhandledExceptionHandler.getTopLevelCauseMessage C# (CSharp) Method

getTopLevelCauseMessage() private static method

private static getTopLevelCauseMessage ( Exception t ) : string
t System.Exception
return string
        private static string getTopLevelCauseMessage(Exception t)
        {
            Exception topLevelCause = t;
            while (topLevelCause.InnerException != null)
            {
                topLevelCause = topLevelCause.InnerException;
            }
            return topLevelCause.Message;
        }