Noda Time
Show / Hide Table of Contents

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 net6.0, net8.0, netstandard2.0
Inheritance
object
Exception
InvalidNodaDataException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
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 net6.0, net8.0, 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 net6.0, net8.0, 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

ISerializable
In this article
Back to top Generated by DocFX