private static void GetExceptionMessage(Exception exception, StringBuilder messageBuilder)
        {
            var messageFormatter = ExceptionMessageFormatterFactory.GetFormatter(exception);

            messageFormatter.AppendFormattedMessage(exception, messageBuilder);
        }
 public static IExceptionMessageFormatter GetAppropriateExceptionFormatter(Exception exception)
 {
     return(ExceptionMessageFormatterFactory.GetFormatter(exception));
 }