Esempio n. 1
0
        public static void OnExceptionThrown(object sender, DndCoreExceptionEventArgs ea)
        {
            Log($"  Exception: {ea.Ex.Message};");
            Exception innerException = ea.Ex.InnerException;
            string    indent         = "  ";

            while (innerException != null)
            {
                Log($"{indent}  Inner Exception: {innerException.Message};");
                innerException = innerException.InnerException;
                indent        += "  ";
            }
            ExceptionThrown?.Invoke(sender, ea);
        }
Esempio n. 2
0
 public static void OnExceptionThrown(object sender, DndCoreExceptionEventArgs ea)
 {
     ExceptionThrown?.Invoke(sender, ea);
 }