36 references to InvalidTimeZoneException
BasicTestApp (2)
Program.cs (2)
91throw new InvalidTimeZoneException("This is a synchronous startup exception"); 98throw new InvalidTimeZoneException("This is an asynchronous startup exception");
Microsoft.AspNetCore.Components.Tests (7)
RendererTest.cs (7)
3687var exception = new InvalidTimeZoneException("Error from outside the sync context."); 4546var exception = new InvalidTimeZoneException("Error during render"); 4595exception = new InvalidTimeZoneException("Error during SetParametersAsync"); 4613var exception = new InvalidTimeZoneException("Error during SetParametersAsync"); 4653var exception = new InvalidTimeZoneException("Error during event"); 4691var exception = new InvalidTimeZoneException("Error during event"); 4736var 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)
149throw new InvalidTimeZoneException("some failure"); 455() => throw new InvalidTimeZoneException("some failure"),
ChatCompletion\FunctionInvokingChatClientTests.cs (2)
272throw new InvalidTimeZoneException($"Exception from call {callIndex}"); 351throw new InvalidTimeZoneException($"It failed");
Embeddings\DistributedCachingEmbeddingGeneratorTest.cs (1)
164throw new InvalidTimeZoneException("some failure");
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (3)
2190throw new InvalidTimeZoneException(SR.Argument_AdjustmentRulesNoNulls); 2195throw new InvalidTimeZoneException(SR.ArgumentOutOfRange_UtcOffsetAndDaylightDelta); 2201throw new InvalidTimeZoneException(SR.Argument_AdjustmentRulesOutOfOrder);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (4)
690throw new InvalidTimeZoneException(SR.InvalidTimeZone_NoTTInfoStructures); 858throw new InvalidTimeZoneException(SR.Format(SR.InvalidTimeZone_UnparsablePosixMDateString, date.ToString())); 933throw new InvalidTimeZoneException(SR.InvalidTimeZone_InvalidJulianDay); 948throw 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));