31 references to Utils
dotnet-svcutil-lib (31)
CodeSerializer.cs (3)
51if (e is ToolRuntimeException || Utils.IsFatalOrUnexpected(e)) 75if (Utils.IsFatalOrUnexpected(e)) throw; 106if (Utils.IsFatalOrUnexpected(e)) throw;
CommandLineParser.cs (1)
201if (Utils.IsFatalOrUnexpected(ex)) throw;
CommandProcessorOptions.cs (4)
243if (Utils.IsFatalOrUnexpected(ex)) throw; 949if (Utils.IsFatalOrUnexpected(ex)) throw; 962if (Utils.IsFatalOrUnexpected(ex)) throw; 985if (Utils.IsFatalOrUnexpected(ex)) throw;
ImportModule.cs (1)
218if (Utils.IsFatalOrUnexpected(e)) throw;
MarkupTelemetryHelper.cs (1)
122var str = Utils.GetExceptionMessage(ex, includeStackTrace: true);
Metadata\MetadaExchangeResolver.cs (2)
201if (Utils.IsFatalOrUnexpected(ex)) throw; 279if (Utils.IsFatalOrUnexpected(ex)) throw;
Metadata\MetadataDocumentLoader.cs (1)
402if (Utils.IsFatalOrUnexpected(ex)) throw;
OutputPathHelper.cs (2)
79if (Utils.IsFatalOrUnexpected(e)) throw; 103if (Utils.IsFatalOrUnexpected(e)) throw;
Shared\MSBuildProj.cs (2)
867if (Utils.IsFatalOrUnexpected(ex)) throw; 948if (Utils.IsFatalOrUnexpected(ex)) throw;
Shared\Options\ApplicationOptions.cs (1)
148if (Utils.IsFatalOrUnexpected(ex)) throw;
Shared\Options\OptionsSerializer.cs (2)
87if (Utils.IsFatalOrUnexpected(ex)) throw; 119if (Utils.IsFatalOrUnexpected(ex)) throw;
Shared\Options\OptionValueParser.cs (1)
255if (Utils.IsFatalOrUnexpected(ex)) throw;
Shared\ProjectPropertyResolver.cs (1)
97if (Utils.IsFatalOrUnexpected(ex)) throw;
Tool.cs (5)
234if (Utils.IsFatalOrUnexpected(ex)) throw; 235var exception = new ToolInputException(Utils.GetExceptionMessage(ex), ex); 391else if (Utils.IsUnexpected(ex)) 409exMsg = Utils.GetExceptionMessage(ex, true); 417exMsg = exMsg ?? Utils.GetExceptionMessage(ex, true);
ToolConsole.cs (4)
41toolError.AppendLine(Utils.GetExceptionMessage(ex)); 47toolError.AppendLine(Utils.GetExceptionMessage(me.WSMexException)); 67WriteError(Utils.GetExceptionMessage(e), SR.ErrorPrefix); 73WriteError(Utils.GetExceptionMessage(e), prefix);