17 instantiations of ConfigurationException
Microsoft.TemplateEngine.Edge (17)
Constraints\ConstraintsExtensions.cs (10)
24return new[] { token.GetValue<string>() ?? throw new ConfigurationException(string.Format(LocalizableStrings.Constraint_Error_ArgumentHasEmptyString, args)) }; 33throw new ConfigurationException(string.Format(LocalizableStrings.Constraint_Error_ArgumentHasEmptyString, args)); 39throw new ConfigurationException(string.Format(LocalizableStrings.Constraint_Error_ArgumentHasEmptyString, args)); 61throw new ConfigurationException(string.Format(LocalizableStrings.Constraint_Error_InvalidJsonArray_Objects, args)); 107throw new ConfigurationException(string.Format(LocalizableStrings.Constraint_Error_InvalidVersion, versionString)); 117throw new ConfigurationException(LocalizableStrings.Constraint_Error_ArgumentsNotSpecified); 127throw new ConfigurationException(string.Format(LocalizableStrings.Constraint_Error_InvalidJson, args), e); 130return token ?? throw new ConfigurationException(string.Format(LocalizableStrings.Constraint_Error_InvalidJson, args)); 137throw new ConfigurationException(string.Format( 146throw new ConfigurationException(string.Format(LocalizableStrings.Constraint_Error_ArrayHasNoObjects, args));
Constraints\HostConstraint.cs (1)
81throw new ConfigurationException(string.Format(LocalizableStrings.HostConstraint_Error_MissingMandatoryProperty, jObj, "hostname"));
Constraints\OSConstraint.cs (1)
66throw new ConfigurationException(string.Format(LocalizableStrings.OSConstraint_Error_InvalidOSName, arg, supportedValues));
Constraints\SdkVersionConstraintFactory.cs (3)
98throw new ConfigurationException(LocalizableStrings.SdkConstraint_Error_MissingProvider); 103throw new ConfigurationException( 121throw new ConfigurationException(string.Format(LocalizableStrings.SdkConstraint_Error_InvalidVersion, version));
Constraints\WorkloadConstraintFactory.cs (2)
92throw new ConfigurationException(LocalizableStrings.WorkloadConstraint_Error_MissingProvider); 97throw new ConfigurationException(
5 references to ConfigurationException
Microsoft.TemplateEngine.Edge (5)
Constraints\ConstraintBase.cs (1)
31catch (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>