private static string GetMessage(MsDataFileUri importPath, Exception x) { string message = importPath.GetSampleName() == null ? string.Format(Resources.ChromCacheBuildException_GetMessage_Failed_importing_results_file___0___, importPath.GetFilePath()) : string.Format(Resources.ChromCacheBuildException_GetMessage_Failed_importing_results_file___0____sample__1__, importPath.GetFilePath(), importPath.GetSampleName()); return TextUtil.LineSeparate(message, x.Message); }
private static string GetMessage(MsDataFileUri importPath, Exception x) { string message = importPath.GetSampleName() == null ? string.Format(Resources.ChromCacheBuildException_GetMessage_Failed_importing_results_file___0___, importPath.GetFilePath()) : string.Format(Resources.ChromCacheBuildException_GetMessage_Failed_importing_results_file___0____sample__1__, importPath.GetFilePath(), importPath.GetSampleName()); return(TextUtil.LineSeparate(message, x.Message)); }
public MissingDataException(string messageFormat, MsDataFileUri importPath, Exception innerException) : base(string.Format(messageFormat, importPath.GetFilePath()), importPath, innerException) { MessageFormat = messageFormat; }