Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class NodaTime.​TimeZones.​DateTimeZoneNotFoundException
Assembly: NodaTime
Inheritance: object → System.​Exception → System.​TimeZoneNotFoundException → DateTimeZoneNotFoundException
Implemented Interfaces
- System.​Runtime.​Serialization.​ISerializable Implemented by: Exception
Exception thrown when time zone is requested from an <see cref="T:NodaTime.IDateTimeZoneProvider" /> , but the specified ID is invalid for that provider.
Remarks
This type originally existed as <c>TimeZoneNotFoundException</c> 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 <c>TimeZoneInfo</c> , we recommend that you don't use it that way.
Properties
public
string
HelpLink
public
int
HResult
InnerException
public
string
Message
public
string
Source
public
string
StackTrace
TargetSite
Methods
public
void
GetObjectData​(System.​Runtime.​Serialization.​SerializationInfo info,
System.​Runtime.​Serialization.​StreamingContext context)
Inherited from System.​Exception
public
System.​Type
GetType​()
Inherited from System.​Exception
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object