public static void AddToModelState(this DispatcherException ex, ModelStateDictionary modelStateDictionary)
 {
     modelStateDictionary.AddModelError("", ex.Message);
 }
Ejemplo n.º 2
0
 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;
 }