34 references to TemplateAuthoringException
Microsoft.TemplateEngine.Edge (2)
Template\ParameterSetBuilder.cs (2)
283throw new TemplateAuthoringException( 306throw new TemplateAuthoringException(
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (32)
ConfigModel\BindSymbol.cs (1)
31throw new TemplateAuthoringException(string.Format(LocalizableStrings.SymbolModel_Error_MandatoryPropertyMissing, name, BindSymbol.TypeName, nameof(Binding).ToLowerInvariant()), name);
ConfigModel\ComputedSymbol.cs (1)
31throw new TemplateAuthoringException(string.Format(LocalizableStrings.SymbolModel_Error_MandatoryPropertyMissing, name, ComputedSymbol.TypeName, nameof(Value).ToLowerInvariant()), name);
ConfigModel\DerivedSymbol.cs (2)
38throw new TemplateAuthoringException(string.Format(LocalizableStrings.SymbolModel_Error_MandatoryPropertyMissing, name, DerivedSymbol.TypeName, nameof(ValueTransform).ToLowerInvariant()), name); 46throw new TemplateAuthoringException(string.Format(LocalizableStrings.SymbolModel_Error_MandatoryPropertyMissing, name, DerivedSymbol.TypeName, nameof(ValueSource).ToLowerInvariant()), name);
ConfigModel\GeneratedSymbol.cs (1)
37throw new TemplateAuthoringException(string.Format(LocalizableStrings.SymbolModel_Error_MandatoryPropertyMissing, name, TypeName, nameof(Generator).ToLowerInvariant()), name);
ConfigModel\ParameterSymbol.cs (1)
48throw new TemplateAuthoringException(string.Format(LocalizableStrings.SymbolModel_Error_MandatoryPropertyMissing, name, ParameterSymbol.TypeName, "choice"), name);
ConfigModel\TemplateConfigModel.cs (1)
54throw new TemplateAuthoringException($"'identity' is missing or is an empty string.", "identity");
DirectoryBasedTemplate.cs (2)
175throw new TemplateAuthoringException(string.Format(LocalizableStrings.SimpleConfigModel_AuthoringException_MergeConfiguration_InvalidFileName, partialConfigFileName, RunnableProjectGenerator.TemplateConfigFileName), partialConfigFileName); 179?? throw new TemplateAuthoringException(
MacroProcessor.cs (1)
87throw new TemplateAuthoringException(
Macros\BaseMacroConfig.cs (8)
93throw new TemplateAuthoringException(string.Format(LocalizableStrings.MacroConfig_Exception_ValueShouldBeBoolean, config.VariableName, parameterName), config.VariableName); 110throw new TemplateAuthoringException(string.Format(LocalizableStrings.MacroConfig_Exception_ValueShouldBeInteger, config.VariableName, parameterName), config.VariableName); 125throw new TemplateAuthoringException(string.Format(LocalizableStrings.MacroConfig_Exception_ValueShouldBeString, config.VariableName, parameterName), config.VariableName); 142throw new TemplateAuthoringException(string.Format(LocalizableStrings.MacroConfig_Exception_ValueShouldBeArray, config.VariableName, parameterName), config.VariableName); 162throw new TemplateAuthoringException(string.Format(LocalizableStrings.MacroConfig_Exception_InvalidRegex, generatedSymbolConfig.VariableName, regex), generatedSymbolConfig.VariableName); 175throw new TemplateAuthoringException(string.Format(LocalizableStrings.MacroConfig_Exception_MissingMandatoryProperty, config.VariableName, Type, parameterName), config.VariableName); 184throw new TemplateAuthoringException(string.Format(LocalizableStrings.MacroConfig_Exception_MissingMandatoryProperty, config.VariableName, Type, parameterName), config.VariableName); 193throw new TemplateAuthoringException(string.Format(LocalizableStrings.MacroConfig_Exception_MissingMandatoryProperty, config.VariableName, Type, parameterName), config.VariableName);
Macros\JoinMacroConfig.cs (3)
38throw new TemplateAuthoringException(string.Format(LocalizableStrings.MacroConfig_Exception_ArrayShouldContainObjects, generatedSymbolConfig.VariableName, SymbolsPropertyName), generatedSymbolConfig.VariableName); 42?? throw new TemplateAuthoringException( 51throw new TemplateAuthoringException(
Macros\RegexMacroConfig.cs (3)
40throw new TemplateAuthoringException(string.Format(LocalizableStrings.MacroConfig_Exception_ArrayShouldContainObjects, generatedSymbolConfig.VariableName, StepsPropertyName), generatedSymbolConfig.VariableName); 47throw new TemplateAuthoringException(string.Format(LocalizableStrings.MacroConfig_Exception_MissingValueProperty, generatedSymbolConfig.VariableName, StepsPropertyName, StepsRegexPropertyName), generatedSymbolConfig.VariableName); 53throw new TemplateAuthoringException(string.Format(LocalizableStrings.MacroConfig_Exception_MissingValueProperty, generatedSymbolConfig.VariableName, StepsPropertyName, StepsReplacementPropertyName), generatedSymbolConfig.VariableName);
Macros\SwitchMacroConfig.cs (2)
39throw new TemplateAuthoringException(string.Format(LocalizableStrings.MacroConfig_Exception_ArrayShouldContainObjects, generatedSymbolConfig.VariableName, CasesPropertyName), generatedSymbolConfig.VariableName); 43?? throw new TemplateAuthoringException(
OperationConfig\ConditionalBlockCommentConfig.cs (2)
21throw new TemplateAuthoringException($"Template authoring error. StartToken must be defined", "StartToken"); 25throw new TemplateAuthoringException($"Template authoring error. EndToken must be defined", "EndToken");
OperationConfig\ConditionalConfig.cs (1)
30: throw new TemplateAuthoringException($"Template authoring error. Invalid comment style [{commentStyle}].", "style");
OperationConfig\ConditionalLineCommentConfig.cs (1)
21throw new TemplateAuthoringException("Template authoring error. Token must be defined", "token");
RunnableProjectConfig.ITemplate.cs (1)
50string ITemplateMetadata.Name => ConfigurationModel.Name ?? throw new TemplateAuthoringException("Template configuration should have 'name' defined.", "name");
RunnableProjectGenerator.cs (1)
454public string Name => _templateInfo.ConfigurationModel.Name ?? throw new TemplateAuthoringException("Template configuration should have 'name' defined.", "name");