17 instantiations of ConfigurationException
Microsoft.TemplateEngine.Edge (17)
Constraints\ConstraintsExtensions.cs (10)
24
return new[] { token.GetValue<string>() ?? throw new
ConfigurationException
(string.Format(LocalizableStrings.Constraint_Error_ArgumentHasEmptyString, args)) };
33
throw new
ConfigurationException
(string.Format(LocalizableStrings.Constraint_Error_ArgumentHasEmptyString, args));
39
throw new
ConfigurationException
(string.Format(LocalizableStrings.Constraint_Error_ArgumentHasEmptyString, args));
61
throw new
ConfigurationException
(string.Format(LocalizableStrings.Constraint_Error_InvalidJsonArray_Objects, args));
107
throw new
ConfigurationException
(string.Format(LocalizableStrings.Constraint_Error_InvalidVersion, versionString));
117
throw new
ConfigurationException
(LocalizableStrings.Constraint_Error_ArgumentsNotSpecified);
127
throw new
ConfigurationException
(string.Format(LocalizableStrings.Constraint_Error_InvalidJson, args), e);
130
return token ?? throw new
ConfigurationException
(string.Format(LocalizableStrings.Constraint_Error_InvalidJson, args));
137
throw new
ConfigurationException
(string.Format(
146
throw new
ConfigurationException
(string.Format(LocalizableStrings.Constraint_Error_ArrayHasNoObjects, args));
Constraints\HostConstraint.cs (1)
81
throw new
ConfigurationException
(string.Format(LocalizableStrings.HostConstraint_Error_MissingMandatoryProperty, jObj, "hostname"));
Constraints\OSConstraint.cs (1)
66
throw new
ConfigurationException
(string.Format(LocalizableStrings.OSConstraint_Error_InvalidOSName, arg, supportedValues));
Constraints\SdkVersionConstraintFactory.cs (3)
98
throw new
ConfigurationException
(LocalizableStrings.SdkConstraint_Error_MissingProvider);
103
throw new
ConfigurationException
(
121
throw new
ConfigurationException
(string.Format(LocalizableStrings.SdkConstraint_Error_InvalidVersion, version));
Constraints\WorkloadConstraintFactory.cs (2)
92
throw new
ConfigurationException
(LocalizableStrings.WorkloadConstraint_Error_MissingProvider);
97
throw new
ConfigurationException
(
5 references to ConfigurationException
Microsoft.TemplateEngine.Edge (5)
Constraints\ConstraintBase.cs (1)
31
catch (
ConfigurationException
ce)
Constraints\ConstraintsExtensions.cs (4)
17
/// <exception cref="
ConfigurationException
">Thrown on unexpected input - not a valid json string or array of string or an empty array.</exception>
51
/// <exception cref="
ConfigurationException
">Thrown on unexpected input - not a valid json array or an empty array.</exception>
69
/// Attempts to parse given string and return the version specification (throws <see cref="
ConfigurationException
"/> if unsuccessful).
79
/// <exception cref="
ConfigurationException
">Thrown if given string is not recognized as any valid version format.</exception>