[btls] Capture inner exception in MobileAuthenticatedStream
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 9 Jan 2017 18:48:37 +0000 (19:48 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 9 Jan 2017 18:48:37 +0000 (19:48 +0100)
commit0007e99a87229eab592c179430c4fe3d885e1363
treee7989f4a2147847b8fc423d19e953cf54ac4220a
parentecf1f25fcd491ca105e0b3298c5b5ff1882fd682
[btls] Capture inner exception in MobileAuthenticatedStream

Previously we'd just throw the catched exception again
which overwrites its stacktrace, making it less useful
since all you can see is e.g. a NullReferenceException
(re)thrown at MobileAuthenticatedStream:218.

We now capture the original exception information so
the stacktrace is more complete.
mcs/class/System/Mono.Net.Security/MobileAuthenticatedStream.cs