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 net35-Client, PCL
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
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.MemberwiseClone()
Namespace: NodaTime.Utility
Assembly: NodaTime.dll
Syntax
[Serializable]
public class InvalidNodaDataException : Exception, ISerializable, _Exception
Remarks
This type only exists as
InvalidDataException
doesn't exist in the Portable Class Library.
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 net35-Client, PCL
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 net35-Client, PCL
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