예제 #1
0
 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);
 }
예제 #2
0
        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));
        }
예제 #3
0
 public MissingDataException(string messageFormat, MsDataFileUri importPath, Exception innerException)
     : base(string.Format(messageFormat, importPath.GetFilePath()), importPath, innerException)
 {
     MessageFormat = messageFormat;
 }