Пример #1
0
 /// <summary>
 /// Writes an error message.
 /// </summary>
 public static void WriteError(this CommandContext context, Exception e, bool returnStackTrace = false)
 {
     context.Response.Messages.Add(ResponseMessage.Error(returnStackTrace ? e.ToString() : e.Message));
 }