Exemplo n.º 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);
        }
Exemplo n.º 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;
		}