Exemple #1
0
		public void Execute(ServerError error)
		{
			var msg = string.Format(
@"{0}
  Document:	{1}
  Index:	{2}
  When:		{3}",
			                        error.Error,
			                        error.Document,
			                        error.Index,
			                        error.Timestamp);
			Clipboard.SetText(msg);
		}
Exemple #2
0
		protected static void PrintServerErrors(ServerError[] serverErrors)
		{
			if (serverErrors.Any())
			{
				Console.WriteLine("Server errors count: " + serverErrors.Count());
				foreach (var serverError in serverErrors)
				{
					Console.WriteLine("Server error: " + serverError.ToString());
				}
			}
			else
				Console.WriteLine("No server errors");
		}
Exemple #3
0
		public Error(ServerError inner)
		{
			this.inner = inner;
		}
Exemple #4
0
		public bool CanExecute(ServerError error) { return error != null; }