Пример #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);
 }
Пример #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);
 }
Пример #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);
 }