Noda Time
DateTimeZoneNotFoundException Class
NamespacesNodaTime.TimeZonesDateTimeZoneNotFoundException

[This is preliminary documentation and is subject to change.]

Exception thrown when time zone is requested from an IDateTimeZoneProvider, but the specified ID is invalid for that provider.
Declaration Syntax
C#Visual BasicVisual C++
[SerializableAttribute]
public sealed class DateTimeZoneNotFoundException : TimeZoneNotFoundException
<SerializableAttribute> _
Public NotInheritable Class DateTimeZoneNotFoundException _
	Inherits TimeZoneNotFoundException
[SerializableAttribute]
public ref class DateTimeZoneNotFoundException sealed : public TimeZoneNotFoundException
Members
All MembersConstructors



IconMemberDescription
DateTimeZoneNotFoundException(String)
Creates an instance with the given message.

Remarks
This type only exists as TimeZoneNotFoundException doesn't exist in the Portable Class Library. By creating an exception which derives from TimeZoneNotFoundException on the desktop version and Exception on the PCL version, we achieve reasonable consistency while remaining backwardly compatible with Noda Time v1 (which was desktop-only, and threw TimeZoneNotFoundException).
Thread Safety
Any public static members of this type are thread safe. Any instance members are not guaranteed to be thread safe. See the thread safety section of the user guide for more information.
Inheritance Hierarchy
Object
Exception
 TimeZoneNotFoundException
  DateTimeZoneNotFoundException

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)