Class InvalidNodaDataException
Exception thrown when data read by Noda Time (such as serialized time zone data) is invalid. This includes
data which is truncated, i.e. we expect more data than we can read.
Since 1.1.x
Availability netstandard2.0
Inheritance
Object
Exception
InvalidNodaDataException
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.Utility
Assembly: NodaTime.dll
Syntax
public sealed class InvalidNodaDataException : Exception, ISerializable
Remarks
This type only exists as
InvalidDataException
didn't exist in Portable Class Libraries.
That does exist in netstandard1.3, but as we shipped 2.0 without realizing this, we're stuck with the
new exception type.
Unfortunately, InvalidDataException
itself is sealed, so we can't derive from it for the sake
of backward compatibility.
Constructors
InvalidNodaDataException(String)
Creates an instance with the given message.
Since 1.1.x
Availability netstandard2.0
Declaration
public InvalidNodaDataException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message for the exception. |
InvalidNodaDataException(String, Exception)
Creates an instance with the given message.
Since 1.1.x
Availability netstandard2.0
Declaration
public InvalidNodaDataException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message for the exception. |
Exception | innerException | Underlying cause of the error. |
Implements
System.Runtime.Serialization.ISerializable