Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class NodaTime.​Utility.​InvalidNodaDataException
Assembly: NodaTime
Inheritance: object → System.​Exception → InvalidNodaDataException
Implemented Interfaces
- System.​Runtime.​Serialization.​ISerializable Implemented by: Exception
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.
Remarks
This type only exists as <c>InvalidDataException</c> 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, <c>InvalidDataException</c> itself is sealed, so we can't derive from it for the sake
of backward compatibility.
Properties
public
string
HelpLink
public
int
HResult
InnerException
public
string
Message
public
string
Source
public
string
StackTrace
TargetSite
Methods
public
void
GetObjectData​(System.​Runtime.​Serialization.​SerializationInfo info,
System.​Runtime.​Serialization.​StreamingContext context)
Inherited from System.​Exception
public
System.​Type
GetType​()
Inherited from System.​Exception
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object