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
statusCodeHttpStatusCodeThe HTTP status code Tracker answered with.
errorApiErrorThe parsed error body, if the body looked like one.
rawResponsestringThe 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
ErrorMessages
Tracker's error messages without blank entries; empty when it sent none.
public IReadOnlyList<string> ErrorMessages { get; }
Property Value
RawResponse
The raw response body, for diagnostics.
public string? RawResponse { get; }
Property Value
StatusCode
The HTTP status code Tracker answered with.
public HttpStatusCode StatusCode { get; }