Class ApiError
- Namespace
- Tudormobile.Strava.Api
- Assembly
- Tudormobile.Strava.dll
Strava API Error. Encapsulated the errors that may be returned from the API.
public class ApiError
- Inheritance
-
ApiError
- Inherited Members
Constructors
ApiError(Exception)
Create and initialize a new instance.
public ApiError(Exception exception)
Parameters
exceptionExceptionException that caused the error.
Remarks
The Message property will contain the exception message.
ApiError(string?)
Create and initialize a new instance.
public ApiError(string? message = null)
Parameters
messagestringError message
Remarks
The exception property will contain an generic excetion with the same error message.
ApiError(string, Exception)
Create and initialize a new instance.
public ApiError(string messge, Exception error)
Parameters
ApiError(Fault)
public ApiError(Fault fault)
Parameters
Properties
Exception
Error exception.
public Exception Exception { get; init; }
Property Value
Fault
Strava Fault
public Fault Fault { get; init; }
Property Value
Message
Error Message.
public string Message { get; init; }