Class ApiErrorExtensions
- Namespace
- VpnHood.AppLib.Api.Exceptions
- Assembly
- VpnHood.AppLib.Api.dll
Provides the reading of an API error as the ExceptionType it names.
public static class ApiErrorExtensions
- Inheritance
-
ApiErrorExtensions
- Inherited Members
Methods
GetExceptionType(ApiError)
Gets the error the API error names.
public static ExceptionType? GetExceptionType(this ApiError apiError)
Parameters
apiErrorApiErrorThe API error.
Returns
- ExceptionType?
The error, or null for one the API has no name for, which the UI shows by its message.