[BTLS]: Improve error handling. (#4317)
authorMartin Baulig <martin.baulig@xamarin.com>
Thu, 2 Feb 2017 17:43:02 +0000 (18:43 +0100)
committerGitHub <noreply@github.com>
Thu, 2 Feb 2017 17:43:02 +0000 (18:43 +0100)
commit01288a7550a4ce055707beb69c5fdbb014d97b64
treeff88f18d71579017402b1fcb0733cd239d5ef651
parente4b4e981d68ad0ce2d0fd7b9f9472d56311de4f7
[BTLS]: Improve error handling. (#4317)

* Add new native mono_btls_error_peek_error_line() and
  mono_btls_error_get_error_line().

* Add `MonoBtlsError.PeekError(out string, out int)` and
  `MonoBtlsError.GetError(out string, out int)` overloads.

* MonoBtlsContext.GetException(): use it here.
mcs/class/System/Mono.Btls/MonoBtlsContext.cs
mcs/class/System/Mono.Btls/MonoBtlsError.cs
mono/btls/btls-error.c
mono/btls/btls-error.h