* Fix an incorrect namespace for copy auth url request. * Implemented SSL handshake process for testing imap configuration. * Implemented SSL handshake process for testing imap configuration. * Replace certificate PathIcon with WinoFontIcon in XAML.
25 lines
598 B
C#
25 lines
598 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Wino.Core.Domain.Extensions
|
|
{
|
|
public static class ExceptionExtensions
|
|
{
|
|
public static IEnumerable<Exception> GetInnerExceptions(this Exception ex)
|
|
{
|
|
if (ex == null)
|
|
{
|
|
throw new ArgumentNullException("ex");
|
|
}
|
|
|
|
var innerException = ex;
|
|
do
|
|
{
|
|
yield return innerException;
|
|
innerException = innerException.InnerException;
|
|
}
|
|
while (innerException != null);
|
|
}
|
|
}
|
|
}
|