37 references to InvalidTimeZoneException
BasicWebSite (1)
artifacts\obj\BasicWebSite\Release\net10.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\RazorComponents_Throws_razor.g.cs (1)
45throw new InvalidTimeZoneException("test");
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
TestComponents_ComponentThatThrowsSynchronously_razor.g.cs (1)
27=> throw new InvalidTimeZoneException("Test message");
TestComponents_StreamingComponentThatThrowsAsynchronously_razor.g.cs (1)
38throw new InvalidTimeZoneException("Test message with <b>markup</b>");
Microsoft.AspNetCore.Components.Tests (7)
RendererTest.cs (7)
3688var exception = new InvalidTimeZoneException("Error from outside the sync context."); 4547var exception = new InvalidTimeZoneException("Error during render"); 4596exception = new InvalidTimeZoneException("Error during SetParametersAsync"); 4614var exception = new InvalidTimeZoneException("Error during SetParametersAsync"); 4654var exception = new InvalidTimeZoneException("Error during event"); 4692var exception = new InvalidTimeZoneException("Error during event"); 4737var exception = new InvalidTimeZoneException("Error during event");
Microsoft.AspNetCore.Components.Web.Tests (2)
HtmlRendering\HtmlRendererTest.cs (2)
1349throw new InvalidTimeZoneException("async"); 1359throw new InvalidTimeZoneException("sync");
Microsoft.AspNetCore.Routing.Tests (11)
EndpointMiddlewareTest.cs (11)
83throw new InvalidTimeZoneException("Should not be called"); 110throw new InvalidTimeZoneException("Should not be called"); 139throw new InvalidTimeZoneException("Should not be called"); 175throw new InvalidTimeZoneException("Should not be called"); 209throw new InvalidTimeZoneException("Should not be called"); 236throw new InvalidTimeZoneException("Should not be called"); 272throw new InvalidTimeZoneException("Should not be called"); 306throw new InvalidTimeZoneException("Should not be called"); 334throw new InvalidTimeZoneException("Should not be called"); 370throw new InvalidTimeZoneException("Should not be called"); 404throw new InvalidTimeZoneException("Should not be called");
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
ResponseTests.cs (1)
197throw new InvalidTimeZoneException("Failed OnStarting");
Microsoft.Extensions.AI.Tests (5)
ChatCompletion\DistributedCachingChatClientTest.cs (2)
176throw new InvalidTimeZoneException("some failure"); 485() => throw new InvalidTimeZoneException("some failure"),
ChatCompletion\FunctionInvokingChatClientTests.cs (2)
417throw new InvalidTimeZoneException($"Exception from call {callIndex}"); 496throw new InvalidTimeZoneException($"It failed");
Embeddings\DistributedCachingEmbeddingGeneratorTest.cs (1)
182throw new InvalidTimeZoneException("some failure");
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (3)
1336throw new InvalidTimeZoneException(SR.Argument_AdjustmentRulesNoNulls); 1341throw new InvalidTimeZoneException(SR.ArgumentOutOfRange_UtcOffsetAndDaylightDelta); 1347throw new InvalidTimeZoneException(SR.Argument_AdjustmentRulesOutOfOrder);
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\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (1)
140e = new InvalidTimeZoneException(SR.Format(SR.InvalidTimeZone_InvalidFileData, id, timeZoneFilePath));