41 instantiations of TemplateAuthoringException
Microsoft.TemplateEngine.Core (1)
Util\Orchestrator.cs (1)
292throw new TemplateAuthoringException($"Template authoring error encountered while processing file {sourceFile.FullPath}: {ex.Message}", ex.ConfigItem, ex);
Microsoft.TemplateEngine.Edge (2)
Template\ParameterSetBuilder.cs (2)
283throw new TemplateAuthoringException( 306throw new TemplateAuthoringException(
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (38)
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 (3)
47throw new TemplateAuthoringException(LocalizableStrings.Authoring_TemplateRootOutsideInstallSource); 175throw new TemplateAuthoringException(string.Format(LocalizableStrings.SimpleConfigModel_AuthoringException_MergeConfiguration_InvalidFileName, partialConfigFileName, RunnableProjectGenerator.TemplateConfigFileName), partialConfigFileName); 179?? throw new TemplateAuthoringException(
EvaluatorSelector.cs (1)
80_ => throw new TemplateAuthoringException(string.Format(LocalizableStrings.EvaluatorSelector_Exception_UnknownEvaluator, evaluatorName)),
MacroProcessor.cs (1)
87throw new TemplateAuthoringException(
Macros\BaseMacroConfig.cs (12)
93throw new TemplateAuthoringException(string.Format(LocalizableStrings.MacroConfig_Exception_ValueShouldBeBoolean, config.VariableName, parameterName), config.VariableName); 97throw new TemplateAuthoringException(string.Format(LocalizableStrings.MacroConfig_Exception_InvalidJSON, config.VariableName, parameterName), config.VariableName, ex); 110throw new TemplateAuthoringException(string.Format(LocalizableStrings.MacroConfig_Exception_ValueShouldBeInteger, config.VariableName, parameterName), config.VariableName); 114throw new TemplateAuthoringException(string.Format(LocalizableStrings.MacroConfig_Exception_InvalidJSON, config.VariableName, parameterName), config.VariableName, ex); 125throw new TemplateAuthoringException(string.Format(LocalizableStrings.MacroConfig_Exception_ValueShouldBeString, config.VariableName, parameterName), config.VariableName); 131throw new TemplateAuthoringException(string.Format(LocalizableStrings.MacroConfig_Exception_InvalidJSON, config.VariableName, parameterName), config.VariableName, ex); 142throw new TemplateAuthoringException(string.Format(LocalizableStrings.MacroConfig_Exception_ValueShouldBeArray, config.VariableName, parameterName), config.VariableName); 148throw new TemplateAuthoringException(string.Format(LocalizableStrings.MacroConfig_Exception_InvalidJSON, config.VariableName, parameterName), config.VariableName, ex); 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");
16 references to TemplateAuthoringException
Microsoft.TemplateEngine.Cli (1)
TemplateInvoker.cs (1)
189catch (TemplateAuthoringException tae)
Microsoft.TemplateEngine.Core (1)
Util\Orchestrator.cs (1)
290catch (TemplateAuthoringException ex)
Microsoft.TemplateEngine.Edge (1)
Template\TemplateCreator.cs (1)
222status: cx is TemplateAuthoringException ? CreationResultStatus.TemplateIssueDetected : CreationResultStatus.CreateFailed,
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (13)
ConfigModel\SymbolModelConverter.cs (1)
28catch (TemplateAuthoringException ex)
DirectoryBasedTemplate.cs (2)
33/// <exception cref="TemplateAuthoringException">when template configuration is invalid.</exception> 159/// <exception cref="TemplateAuthoringException">when additional files configuration is invalid.</exception>
EvaluatorSelector.cs (1)
68/// <exception cref="TemplateAuthoringException">when <paramref name="name"/> cannot is unknown and cannot be parsed.</exception>
MacroProcessor.cs (2)
17/// <exception cref="TemplateAuthoringException">when <see cref="IGeneratedSymbolMacro"/> config is invalid.</exception> 65catch (Exception ex) when (ex is not TemplateAuthoringException)
Macros\BaseMacroConfig.cs (4)
95catch (Exception ex) when (ex is not TemplateAuthoringException) 112catch (Exception ex) when (ex is not TemplateAuthoringException) 129catch (Exception ex) when (ex is not TemplateAuthoringException) 146catch (Exception ex) when (ex is not TemplateAuthoringException)
RunnableProjectGenerator.cs (3)
81catch (TemplateAuthoringException ex) 280catch (TemplateAuthoringException ex) 356catch (TemplateAuthoringException ex)