Exemple #1
0
 /// <summary>
 /// Registers an error that caused the execution to fail.
 /// </summary>
 /// <param name="error">The error that caused the failure.</param>
 /// <seealso cref="Failed"/>
 public void AddFatalError(ExecuteError error)
 {
     Failed = true;
     errorList.Add(error);
 }
Exemple #2
0
 /// <summary>
 /// Registers a non-fatal error that occurs during the execution
 /// </summary>
 /// <param name="error">The error occurred</param>
 public void AddError(ExecuteError error)
 {
     errorList.Add(error);
 }
Exemple #3
0
 /// <summary>
 /// Adds an execution error in the temporary context
 /// of the activity
 /// </summary>
 /// <param name="error">The error to be added</param>
 /// <remarks>
 /// This method is a convenience when executing the body
 /// of <see cref="ExecuteAsync"/>, to be collected later
 /// </remarks>
 /// <seealso cref="ExecuteAsync"/>
 protected void AddError(ExecuteError error)
 {
     errorList.Add(error);
 }