diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-13 16:35:28 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-13 16:35:28 +0200 |
| commit | d5a5fd2813a98d97e0198342bbcc53df454c3e01 (patch) | |
| tree | 8e3012262ba6417c3236d33a582df2d7ab0cd16a /Software/Visual_Studio/Tango.Transport/ResponseErrorException.cs | |
| parent | 2b1e86aeee219b236ba8cb33c5ebfa8bde89f14f (diff) | |
| download | Tango-d5a5fd2813a98d97e0198342bbcc53df454c3e01.tar.gz Tango-d5a5fd2813a98d97e0198342bbcc53df454c3e01.zip | |
Digital out.
Diffstat (limited to 'Software/Visual_Studio/Tango.Transport/ResponseErrorException.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Transport/ResponseErrorException.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Transport/ResponseErrorException.cs b/Software/Visual_Studio/Tango.Transport/ResponseErrorException.cs index 365a5d432..747a07b4f 100644 --- a/Software/Visual_Studio/Tango.Transport/ResponseErrorException.cs +++ b/Software/Visual_Studio/Tango.Transport/ResponseErrorException.cs @@ -20,11 +20,13 @@ namespace Tango.Transport /// </summary> public ErrorCode Error { get; set; } + public MessageType MessageType { get; set; } + /// <summary> /// Initializes a new instance of the <see cref="ResponseErrorException{T}"/> class. /// </summary> /// <param name="error">The error.</param> - public ResponseErrorException(ErrorCode error) : base("Response received with error " + error.ToString()) + public ResponseErrorException(ErrorCode error, MessageType messageType) : base("Response " + messageType.ToString() + " returned with error " + error.ToString()) { Error = error; } |
