Exception event args for message processing
Inheritance: System.EventArgs
 public void Default()
 {
     var e = new Exception();
     var test = new MessageErrorEventArgs(e);
     Assert.Equal(e, test.Error);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Raises the user message exception.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="MessageErrorEventArgs"/> instance containing the event data.</param>
 protected void RaiseUserMessageException(object sender, MessageErrorEventArgs e)
 {
     RaiseUserException(this, new WorkerErrorEventArgs(this, e.Error));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Raises the user message exception.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="MessageErrorEventArgs"/> instance containing the event data.</param>
 protected void RaiseUserMessageException(object sender, MessageErrorEventArgs e)
 {
     RaiseUserException(this, new WorkerErrorEventArgs(this, e.Error));
 }