Exemple #1
0
        static string GetErrorMessageForPackageConsole(Exception ex)
        {
            var aggregateEx = ex as AggregateException;

            if (aggregateEx != null)
            {
                var message = new AggregateExceptionErrorMessage(aggregateEx);
                return(message.ToString());
            }
            return(ex.Message);
        }
Exemple #2
0
        string GetErrorMessage(AggregateException ex)
        {
            var errorMessage = new AggregateExceptionErrorMessage(ex);

            return(errorMessage.ToString());
        }
		static string GetErrorMessageForPackageConsole (Exception ex)
		{
			var aggregateEx = ex as AggregateException;
			if (aggregateEx != null) {
				var message = new AggregateExceptionErrorMessage (aggregateEx);
				return message.ToString ();
			}
			return ex.Message;
		}