11 private readonly DateTime timestamp;
12 private readonly
string errorMessage;
75 StringBuilder Output =
new StringBuilder();
77 Output.Append(this.timestamp.ToString(
"d"));
79 Output.Append(this.timestamp.ToString(
"T"));
81 if (!
string.IsNullOrEmpty(this.
NodeId))
84 Output.Append(this.
NodeId);
86 if (!
string.IsNullOrEmpty(this.
SourceId))
91 if (!
string.IsNullOrEmpty(this.
Partition))
100 Output.Append(this.errorMessage);
102 return Output.ToString();
Contains information about an error on a thing
ThingError(IThingReference Thing, string ErrorMessage)
Contains information about an error on a thing
ThingError(string NodeId, string SourceId, string Partition, string ErrorMessage)
Contains information about an error on a thing
DateTime Timestamp
Timestamp of error.
override string ToString()
ThingError(IThingReference Thing, DateTime Timestamp, string ErrorMessage)
Contains information about an error on a thing
ThingError(string NodeId, string SourceId, string Partition, DateTime Timestamp, string ErrorMessage)
Contains information about an error on a thing
string ErrorMessage
Error message.
Contains a reference to a thing
string Partition
Optional partition in which the Node ID is unique.
string SourceId
Optional ID of source containing node.
Interface for thing references.