aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.PMR/TangoMessage.cs
diff options
context:
space:
mode:
authorRoy <roy.mail.net@gmail.com>2017-12-25 11:06:31 +0200
committerRoy <roy.mail.net@gmail.com>2017-12-25 11:06:31 +0200
commit6450fc175114a6f8d0b75cb21386d1bb0c902711 (patch)
tree374c3005e7073855264c16f8ea0ad1d022f9f627 /Software/Visual_Studio/Tango.PMR/TangoMessage.cs
parent6e095fe0b74ee090603fc25980fa0c71f61c6467 (diff)
downloadTango-6450fc175114a6f8d0b75cb21386d1bb0c902711.tar.gz
Tango-6450fc175114a6f8d0b75cb21386d1bb0c902711.zip
Implemented Container ErrorCode handling on .NET + Java.
Diffstat (limited to 'Software/Visual_Studio/Tango.PMR/TangoMessage.cs')
-rw-r--r--Software/Visual_Studio/Tango.PMR/TangoMessage.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/TangoMessage.cs b/Software/Visual_Studio/Tango.PMR/TangoMessage.cs
index dec963e36..4819ac509 100644
--- a/Software/Visual_Studio/Tango.PMR/TangoMessage.cs
+++ b/Software/Visual_Studio/Tango.PMR/TangoMessage.cs
@@ -107,5 +107,19 @@ namespace Tango.PMR
{
return MessageFactory.ParseTangoMessage<T>(data);
}
+
+ /// <summary>
+ /// Returns a <see cref="System.String" /> that represents this instance.
+ /// </summary>
+ /// <returns>
+ /// A <see cref="System.String" /> that represents this instance.
+ /// </returns>
+ public override string ToString()
+ {
+ return String.Format(@"Message Type: {0}
+Token: {1}
+Error: {2}
+Message: {3}",Container.Type,Container.Token,Container.Error,Message.ToString());
+ }
}
}