Class InvalidDateTimeZoneSourceException
Exception thrown to indicate that a time zone source has violated the contract of IDateTimeZoneSource.
This exception is primarily intended to be thrown from DateTimeZoneCache, and only in the face of a buggy
source; user code should not usually need to be aware of this or catch it.
Since 1.0.x
Availability net6.0, net8.0, netstandard2.0
Implements
Inherited Members
Namespace: NodaTime.TimeZones
Assembly: NodaTime.dll
Syntax
public sealed class InvalidDateTimeZoneSourceException : Exception, ISerializable
Constructors
InvalidDateTimeZoneSourceException(string)
Creates a new instance with the given message.
Since 1.0.x
Availability net6.0, net8.0, netstandard2.0
Declaration
public InvalidDateTimeZoneSourceException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message for the exception. |