Table of Contents

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

exception Exception

Exception 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

message string

Error 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

messge string

Error message.

error Exception

Error exception.

ApiError(Fault)

Initializes a new instance of the ApiError class using the specified Fault object.

public ApiError(Fault fault)

Parameters

fault Fault

The Fault instance that contains details about the API error. Must not be null.

Properties

Exception

Error exception.

public Exception Exception { get; init; }

Property Value

Exception

Fault

Strava Fault

public Fault Fault { get; init; }

Property Value

Fault

Message

Error Message.

public string Message { get; init; }

Property Value

string