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, netstandard2.0
Inheritance
Object
Exception
TimeZoneNotFoundException
DateTimeZoneNotFoundException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetObjectData(SerializationInfo, StreamingContext)
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
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, netstandard2.0
Declaration
public DateTimeZoneNotFoundException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message for the exception. |
Implements
System.Runtime.Serialization.ISerializable