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)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetError ( _
    ex As Exception _
) As SignalRError
'Usage
Dim ex As Exception 
Dim returnValue As SignalRError 

returnValue = ex.GetError()
public static SignalRError GetError(
    this Exception ex
)
[ExtensionAttribute]
public:
static SignalRError^ GetError(
    Exception^ ex
)
static member GetError : 
        ex:Exception -> SignalRError
public static function GetError(
    ex : Exception
) : SignalRError

Parameters

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) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).

See Also

Reference

ErrorExtensions Class

Microsoft.AspNet.SignalR.Client Namespace