14 references to Fail
Microsoft.DotNet.HotReload.Watch (14)
Browser\BrowserToolsBuildOutputs.cs (14)
126
throw
Fail
("the public and private key documents describe different keys");
136
throw
Fail
("the private key could not be imported");
144
throw
Fail
("the private key does not match the public key the application pinned");
167
throw
Fail
($"'{Path.GetFileName(PrivateKeyPath)}' does not contain the private key components");
192
throw
Fail
($"'{Path.GetFileName(path)}' was not produced by the build");
196
throw
Fail
($"'{Path.GetFileName(path)}' was not produced by the build");
200
throw
Fail
($"'{Path.GetFileName(path)}' could not be read ({e.GetType().Name})");
209
throw
Fail
($"'{Path.GetFileName(path)}' is not a valid JSON document");
219
throw
Fail
($"'{name}' is not a JSON object");
227
throw
Fail
($"'{name}' does not have the supported document version {SupportedKeyDocumentVersion}");
234
throw
Fail
($"'{name}' does not use the supported key algorithm");
241
throw
Fail
($"'{name}' does not use the expected key format '{expectedFormat}'");
251
throw
Fail
($"'{Path.GetFileName(path)}' does not contain '{propertyName}'");
260
throw
Fail
($"'{propertyName}' in '{Path.GetFileName(path)}' is not base64");