14 instantiations of InvalidTimeZoneException
Microsoft.Extensions.AI.Tests (5)
ChatCompletion\DistributedCachingChatClientTest.cs (2)
177throw new InvalidTimeZoneException("some failure"); 486() => throw new InvalidTimeZoneException("some failure"),
ChatCompletion\FunctionInvokingChatClientTests.cs (2)
849throw new InvalidTimeZoneException($"Exception from call {callIndex}"); 928throw new InvalidTimeZoneException($"It failed");
Embeddings\DistributedCachingEmbeddingGeneratorTest.cs (1)
183throw new InvalidTimeZoneException("some failure");
System.Private.CoreLib (9)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (3)
1347throw new InvalidTimeZoneException(SR.Argument_AdjustmentRulesNoNulls); 1352throw new InvalidTimeZoneException(SR.ArgumentOutOfRange_UtcOffsetAndDaylightDelta); 1358throw new InvalidTimeZoneException(SR.Argument_AdjustmentRulesOutOfOrder);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (4)
697throw new InvalidTimeZoneException(SR.InvalidTimeZone_NoTTInfoStructures); 865throw new InvalidTimeZoneException(SR.Format(SR.InvalidTimeZone_UnparsablePosixMDateString, date.ToString())); 940throw new InvalidTimeZoneException(SR.InvalidTimeZone_InvalidJulianDay); 955throw new InvalidTimeZoneException(SR.InvalidTimeZone_InvalidJulianDay);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (2)
132e = new InvalidTimeZoneException(SR.Format(SR.InvalidTimeZone_InvalidFileData, id, timeZoneFilePath), ex); 140e = new InvalidTimeZoneException(SR.Format(SR.InvalidTimeZone_InvalidFileData, id, timeZoneFilePath));
28 references to InvalidTimeZoneException
Microsoft.Extensions.AI.Tests (18)
ChatCompletion\DistributedCachingChatClientTest.cs (8)
186var ex1 = await Assert.ThrowsAsync<InvalidTimeZoneException>(() => outer.GetResponseAsync([input])); 191var ex2 = await Assert.ThrowsAsync<InvalidTimeZoneException>(() => outer.GetResponseAsync([input])); 497var ex1 = await Assert.ThrowsAsync<InvalidTimeZoneException>(() => ToListAsync(result1)); 503var ex2 = await Assert.ThrowsAsync<InvalidTimeZoneException>(() => ToListAsync(result2));
ChatCompletion\FunctionInvokingChatClientTests.cs (6)
900var ex = await Assert.ThrowsAsync<InvalidTimeZoneException>(() => 904ex = await Assert.ThrowsAsync<InvalidTimeZoneException>(() => 942var ex = await Assert.ThrowsAsync<InvalidTimeZoneException>(() => 946ex = await Assert.ThrowsAsync<InvalidTimeZoneException>(() =>
Embeddings\DistributedCachingEmbeddingGeneratorTest.cs (4)
191var ex1 = await Assert.ThrowsAsync<InvalidTimeZoneException>(() => outer.GenerateAsync("abc")); 196var ex2 = await Assert.ThrowsAsync<InvalidTimeZoneException>(() => outer.GenerateAsync("abc"));
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
308[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.InvalidTimeZoneException))]
netstandard (1)
netstandard.cs (1)
884[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.InvalidTimeZoneException))]
System.Core (1)
System.Core.cs (1)
97[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.InvalidTimeZoneException))]
System.Private.CoreLib (6)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (3)
489/// it will throw <see cref="InvalidTimeZoneException"/> / <see cref="TimeZoneNotFoundException"/> / 505Debug.Assert(e is InvalidTimeZoneException, 1016catch (InvalidTimeZoneException e)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (1)
116catch (InvalidTimeZoneException ex)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (2)
348catch (InvalidTimeZoneException) { } 355catch (InvalidTimeZoneException) { }
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
289[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.InvalidTimeZoneException))]