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 net45, netstandard1.3
  
  Inheritance
Object
    Exception
    TimeZoneNotFoundException
    DateTimeZoneNotFoundException
  Implements
ISerializable
    _Exception
  Inherited Members
      Exception.GetBaseException()
    
    
      Exception.ToString()
    
    
      Exception.GetObjectData(SerializationInfo, StreamingContext)
    
    
      Exception.GetType()
    
    
      Exception.Message
    
    
      Exception.Data
    
    
      Exception.InnerException
    
    
      Exception.TargetSite
    
    
      Exception.StackTrace
    
    
      Exception.HelpLink
    
    
      Exception.Source
    
    
      Exception.HResult
    
    
      Exception.SerializeObjectState
    
    
      Object.Equals(Object)
    
    
      Object.Equals(Object, Object)
    
    
      Object.ReferenceEquals(Object, Object)
    
    
      Object.GetHashCode()
    
    
      Object.MemberwiseClone()
    
  Namespace: NodaTime.TimeZones
Assembly: NodaTime.dll
Syntax
[Serializable]
public sealed class DateTimeZoneNotFoundException : TimeZoneNotFoundException, ISerializable, _ExceptionRemarks
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.
  
  
  Since 1.1.x
  
  
  Availability net45, netstandard1.3
  
  Declaration
public DateTimeZoneNotFoundException(string message)Parameters
| Type | Name | Description | 
|---|---|---|
| String | message | The message for the exception. | 
Implements
      System.Runtime.Serialization.ISerializable
  
  
      System.Runtime.InteropServices._Exception