at
|
throw new NullReferenceException($"{nameof(keyVaultClient)} is null!"); |
A
NullReferenceException is thrown. In this case, an
ArgumentNullException should be thrown. The parameter name should be set to the
paramName pareameter of the
ArgumentNullException constructor.
Similarly, at
|
throw new NullReferenceException($"Key Vault request {typeof(T).Name} for \"{name}\" returned null!"); |
A
NullReferenceException is thrown although some other, perhaps a custom application exception, should be thrown.
at
Sander.KeyVaultCache/Sander.KeyVaultCache/KeyVaultCache.cs
Line 26 in a3023ea
NullReferenceExceptionis thrown. In this case, anArgumentNullExceptionshould be thrown. The parameter name should be set to theparamNamepareameter of theArgumentNullExceptionconstructor.Similarly, at
Sander.KeyVaultCache/Sander.KeyVaultCache/KeyFetcher.cs
Line 70 in a3023ea
NullReferenceExceptionis thrown although some other, perhaps a custom application exception, should be thrown.