ErrorExtensions.GetError Method

.NET Framework 4.5

Simplifies error recognition by unwrapping complex exceptions.

Namespace:  Microsoft.AspNet.SignalR.Client
Assembly:  Microsoft.AspNet.SignalR.Client (in Microsoft.AspNet.SignalR.Client.dll)

public static SignalRError GetError(
	this Exception ex
)

Parameters

ex
Type: System.Exception
The thrown exception.

Return Value

Type: Microsoft.AspNet.SignalR.Client.SignalRError
An unwrapped exception in the form of a SignalRError.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Exception. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.111).aspx or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).aspx.
Show: