41 instantiations of TemplateAuthoringException
Microsoft.TemplateEngine.Core (1)
Util\Orchestrator.cs (1)
292
throw new
TemplateAuthoringException
($"Template authoring error encountered while processing file {sourceFile.FullPath}: {ex.Message}", ex.ConfigItem, ex);
Microsoft.TemplateEngine.Edge (2)
Template\ParameterSetBuilder.cs (2)
283
throw new
TemplateAuthoringException
(
306
throw new
TemplateAuthoringException
(
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (38)
ConfigModel\BindSymbol.cs (1)
31
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.SymbolModel_Error_MandatoryPropertyMissing, name, BindSymbol.TypeName, nameof(Binding).ToLowerInvariant()), name);
ConfigModel\ComputedSymbol.cs (1)
31
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.SymbolModel_Error_MandatoryPropertyMissing, name, ComputedSymbol.TypeName, nameof(Value).ToLowerInvariant()), name);
ConfigModel\DerivedSymbol.cs (2)
38
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.SymbolModel_Error_MandatoryPropertyMissing, name, DerivedSymbol.TypeName, nameof(ValueTransform).ToLowerInvariant()), name);
46
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.SymbolModel_Error_MandatoryPropertyMissing, name, DerivedSymbol.TypeName, nameof(ValueSource).ToLowerInvariant()), name);
ConfigModel\GeneratedSymbol.cs (1)
37
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.SymbolModel_Error_MandatoryPropertyMissing, name, TypeName, nameof(Generator).ToLowerInvariant()), name);
ConfigModel\ParameterSymbol.cs (1)
48
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.SymbolModel_Error_MandatoryPropertyMissing, name, ParameterSymbol.TypeName, "choice"), name);
ConfigModel\TemplateConfigModel.cs (1)
54
throw new
TemplateAuthoringException
($"'identity' is missing or is an empty string.", "identity");
DirectoryBasedTemplate.cs (3)
47
throw new
TemplateAuthoringException
(LocalizableStrings.Authoring_TemplateRootOutsideInstallSource);
175
throw 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)
87
throw new
TemplateAuthoringException
(
Macros\BaseMacroConfig.cs (12)
93
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.MacroConfig_Exception_ValueShouldBeBoolean, config.VariableName, parameterName), config.VariableName);
97
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.MacroConfig_Exception_InvalidJSON, config.VariableName, parameterName), config.VariableName, ex);
110
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.MacroConfig_Exception_ValueShouldBeInteger, config.VariableName, parameterName), config.VariableName);
114
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.MacroConfig_Exception_InvalidJSON, config.VariableName, parameterName), config.VariableName, ex);
125
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.MacroConfig_Exception_ValueShouldBeString, config.VariableName, parameterName), config.VariableName);
131
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.MacroConfig_Exception_InvalidJSON, config.VariableName, parameterName), config.VariableName, ex);
142
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.MacroConfig_Exception_ValueShouldBeArray, config.VariableName, parameterName), config.VariableName);
148
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.MacroConfig_Exception_InvalidJSON, config.VariableName, parameterName), config.VariableName, ex);
162
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.MacroConfig_Exception_InvalidRegex, generatedSymbolConfig.VariableName, regex), generatedSymbolConfig.VariableName);
175
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.MacroConfig_Exception_MissingMandatoryProperty, config.VariableName, Type, parameterName), config.VariableName);
184
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.MacroConfig_Exception_MissingMandatoryProperty, config.VariableName, Type, parameterName), config.VariableName);
193
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.MacroConfig_Exception_MissingMandatoryProperty, config.VariableName, Type, parameterName), config.VariableName);
Macros\JoinMacroConfig.cs (3)
38
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.MacroConfig_Exception_ArrayShouldContainObjects, generatedSymbolConfig.VariableName, SymbolsPropertyName), generatedSymbolConfig.VariableName);
42
?? throw new
TemplateAuthoringException
(
51
throw new
TemplateAuthoringException
(
Macros\RegexMacroConfig.cs (3)
40
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.MacroConfig_Exception_ArrayShouldContainObjects, generatedSymbolConfig.VariableName, StepsPropertyName), generatedSymbolConfig.VariableName);
47
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.MacroConfig_Exception_MissingValueProperty, generatedSymbolConfig.VariableName, StepsPropertyName, StepsRegexPropertyName), generatedSymbolConfig.VariableName);
53
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.MacroConfig_Exception_MissingValueProperty, generatedSymbolConfig.VariableName, StepsPropertyName, StepsReplacementPropertyName), generatedSymbolConfig.VariableName);
Macros\SwitchMacroConfig.cs (2)
39
throw new
TemplateAuthoringException
(string.Format(LocalizableStrings.MacroConfig_Exception_ArrayShouldContainObjects, generatedSymbolConfig.VariableName, CasesPropertyName), generatedSymbolConfig.VariableName);
43
?? throw new
TemplateAuthoringException
(
OperationConfig\ConditionalBlockCommentConfig.cs (2)
21
throw new
TemplateAuthoringException
($"Template authoring error. StartToken must be defined", "StartToken");
25
throw 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)
21
throw new
TemplateAuthoringException
("Template authoring error. Token must be defined", "token");
RunnableProjectConfig.ITemplate.cs (1)
50
string ITemplateMetadata.Name => ConfigurationModel.Name ?? throw new
TemplateAuthoringException
("Template configuration should have 'name' defined.", "name");
RunnableProjectGenerator.cs (1)
454
public 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)
189
catch (
TemplateAuthoringException
tae)
Microsoft.TemplateEngine.Core (1)
Util\Orchestrator.cs (1)
290
catch (
TemplateAuthoringException
ex)
Microsoft.TemplateEngine.Edge (1)
Template\TemplateCreator.cs (1)
222
status: cx is
TemplateAuthoringException
? CreationResultStatus.TemplateIssueDetected : CreationResultStatus.CreateFailed,
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (13)
ConfigModel\SymbolModelConverter.cs (1)
28
catch (
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>
65
catch (Exception ex) when (ex is not
TemplateAuthoringException
)
Macros\BaseMacroConfig.cs (4)
95
catch (Exception ex) when (ex is not
TemplateAuthoringException
)
112
catch (Exception ex) when (ex is not
TemplateAuthoringException
)
129
catch (Exception ex) when (ex is not
TemplateAuthoringException
)
146
catch (Exception ex) when (ex is not
TemplateAuthoringException
)
RunnableProjectGenerator.cs (3)
81
catch (
TemplateAuthoringException
ex)
280
catch (
TemplateAuthoringException
ex)
356
catch (
TemplateAuthoringException
ex)