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); }
public static void OnExceptionThrown(object sender, DndCoreExceptionEventArgs ea) { ExceptionThrown?.Invoke(sender, ea); }