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 net45, netstandard1.3
Inheritance
Object
Exception
InvalidNodaDataException
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.Utility
Assembly: NodaTime.dll
Syntax
[Serializable]
public sealed class InvalidNodaDataException : Exception, ISerializable, _Exception
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 net45, netstandard1.3
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 net45, netstandard1.3
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
System.Runtime.InteropServices._Exception