Class DateTimeZoneNotFoundException
Exception thrown when time zone is requested from an IDateTimeZoneProvider,
but the specified ID is invalid for that provider.
Since 1.1.x
Availability net6.0, net8.0, netstandard2.0
Implements
Inherited Members
Namespace: NodaTime.TimeZones
Assembly: NodaTime.dll
Syntax
public sealed class DateTimeZoneNotFoundException : TimeZoneNotFoundException, ISerializable
Remarks
This type originally existed as
TimeZoneNotFoundException
doesn't exist in framework versions
targeted by earlier versions of Noda Time. It is present now solely to avoid unnecessary
backward incompatibility. While it could be used to distinguish between exceptions thrown by
Noda Time and those thrown by TimeZoneInfo
, we recommend that you don't use it that way.Constructors
DateTimeZoneNotFoundException(string)
Creates an instance with the given message.
Since 1.1.x
Availability net6.0, net8.0, netstandard2.0
Declaration
public DateTimeZoneNotFoundException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message for the exception. |