14 instantiations of InvalidTimeZoneException
Microsoft.Extensions.AI.Tests (5)
ChatCompletion\DistributedCachingChatClientTest.cs (2)
177
throw new
InvalidTimeZoneException
("some failure");
486
() => throw new
InvalidTimeZoneException
("some failure"),
ChatCompletion\FunctionInvokingChatClientTests.cs (2)
849
throw new
InvalidTimeZoneException
($"Exception from call {callIndex}");
928
throw new
InvalidTimeZoneException
($"It failed");
Embeddings\DistributedCachingEmbeddingGeneratorTest.cs (1)
183
throw new
InvalidTimeZoneException
("some failure");
System.Private.CoreLib (9)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (3)
1347
throw new
InvalidTimeZoneException
(SR.Argument_AdjustmentRulesNoNulls);
1352
throw new
InvalidTimeZoneException
(SR.ArgumentOutOfRange_UtcOffsetAndDaylightDelta);
1358
throw new
InvalidTimeZoneException
(SR.Argument_AdjustmentRulesOutOfOrder);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (4)
697
throw new
InvalidTimeZoneException
(SR.InvalidTimeZone_NoTTInfoStructures);
865
throw new
InvalidTimeZoneException
(SR.Format(SR.InvalidTimeZone_UnparsablePosixMDateString, date.ToString()));
940
throw new
InvalidTimeZoneException
(SR.InvalidTimeZone_InvalidJulianDay);
955
throw new
InvalidTimeZoneException
(SR.InvalidTimeZone_InvalidJulianDay);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (2)
132
e = new
InvalidTimeZoneException
(SR.Format(SR.InvalidTimeZone_InvalidFileData, id, timeZoneFilePath), ex);
140
e = new
InvalidTimeZoneException
(SR.Format(SR.InvalidTimeZone_InvalidFileData, id, timeZoneFilePath));
28 references to InvalidTimeZoneException
Microsoft.Extensions.AI.Tests (18)
ChatCompletion\DistributedCachingChatClientTest.cs (8)
186
var
ex1 = await Assert.ThrowsAsync<
InvalidTimeZoneException
>(() => outer.GetResponseAsync([input]));
191
var
ex2 = await Assert.ThrowsAsync<
InvalidTimeZoneException
>(() => outer.GetResponseAsync([input]));
497
var
ex1 = await Assert.ThrowsAsync<
InvalidTimeZoneException
>(() => ToListAsync(result1));
503
var
ex2 = await Assert.ThrowsAsync<
InvalidTimeZoneException
>(() => ToListAsync(result2));
ChatCompletion\FunctionInvokingChatClientTests.cs (6)
900
var
ex = await Assert.ThrowsAsync<
InvalidTimeZoneException
>(() =>
904
ex = await Assert.ThrowsAsync<
InvalidTimeZoneException
>(() =>
942
var
ex = await Assert.ThrowsAsync<
InvalidTimeZoneException
>(() =>
946
ex = await Assert.ThrowsAsync<
InvalidTimeZoneException
>(() =>
Embeddings\DistributedCachingEmbeddingGeneratorTest.cs (4)
191
var
ex1 = await Assert.ThrowsAsync<
InvalidTimeZoneException
>(() => outer.GenerateAsync("abc"));
196
var
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"/> /
505
Debug.Assert(e is
InvalidTimeZoneException
,
1016
catch (
InvalidTimeZoneException
e)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (1)
116
catch (
InvalidTimeZoneException
ex)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (2)
348
catch (
InvalidTimeZoneException
) { }
355
catch (
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
))]