public static void AddToModelState(this DispatcherException ex, ModelStateDictionary modelStateDictionary) { modelStateDictionary.AddModelError("", ex.Message); }
public void OnDispatcherException(DispatcherException ex) { Debug.LogError($"Exception from Dispatcher: {ex}"); }
/// <summary> /// Creates new instance. /// </summary> /// <param name="exception"></param> /// <param name="command"></param> public DispatcherExceptionEventArgs(DispatcherException exception, IDispatcherCommand command = default) { Exception = exception ?? throw new ArgumentNullException(nameof(exception)); Command = command; }