Table of Contents

Class YandexTrackerApiException

Namespace
YandexTracker
Assembly
YandexTracker.dll

Tracker refused a request. The message is Tracker's own errorMessages; the parsed body is in Error and the raw one in RawResponse. Common status codes get their own subclasses, so they can be caught without checking the code.

public class YandexTrackerApiException : YandexTrackerException, ISerializable
Inheritance
YandexTrackerApiException
Implements
Derived
Inherited Members

Constructors

YandexTrackerApiException(HttpStatusCode, ApiError?, string?)

Initializes a new instance for a refused request.

public YandexTrackerApiException(HttpStatusCode statusCode, ApiError? error, string? rawResponse)

Parameters

statusCode HttpStatusCode

The HTTP status code Tracker answered with.

error ApiError

The parsed error body, if the body looked like one.

rawResponse string

The raw response body, kept for diagnostics.

Properties

Error

The parsed error body, or null when the body did not look like a Tracker error.

public ApiError? Error { get; }

Property Value

ApiError

ErrorMessages

Tracker's error messages without blank entries; empty when it sent none.

public IReadOnlyList<string> ErrorMessages { get; }

Property Value

IReadOnlyList<string>

RawResponse

The raw response body, for diagnostics.

public string? RawResponse { get; }

Property Value

string

StatusCode

The HTTP status code Tracker answered with.

public HttpStatusCode StatusCode { get; }

Property Value

HttpStatusCode