Class DateTimeZoneNotFoundException
Exception thrown when time zone is requested from an IDateTimeZoneProvider,
but the specified ID is invalid for that provider.
Inherited Members
Namespace: NodaTime.TimeZones
Assembly: NodaTime.dll
Syntax
[Serializable]
public sealed class DateTimeZoneNotFoundException : TimeZoneNotFoundException, ISerializable, _Exception
Remarks
This type only exists as
TimeZoneNotFoundException
doesn't exist in netstandard1.x.
By creating an exception which derives from TimeZoneNotFoundException
on the desktop version
and Exception
on the .NET Standard 1.3 version, we achieve reasonable consistency while remaining
backwardly compatible with Noda Time v1 (which was desktop-only, and threw TimeZoneNotFoundException
).
Constructors
DateTimeZoneNotFoundException(String)
Creates an instance with the given message.
Declaration
public DateTimeZoneNotFoundException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message for the exception. |
Remarks
This type only exists as
TimeZoneNotFoundException
doesn't exist in netstandard1.x.
By creating an exception which derives from TimeZoneNotFoundException
on the desktop version
and Exception
on the .NET Standard 1.3 version, we achieve reasonable consistency while remaining
backwardly compatible with Noda Time v1 (which was desktop-only, and threw TimeZoneNotFoundException
).