Table of Contents

Class RustMapsError

Namespace
RustMapsApi.Results
Assembly
RustMapsApi.dll

Describes why a RustMaps API call failed.

public sealed record RustMapsError : IEquatable<RustMapsError>
Inheritance
RustMapsError
Implements
Inherited Members

Constructors

RustMapsError(RustMapsErrorKind, string?, string?, TimeSpan?)

Describes why a RustMaps API call failed.

public RustMapsError(RustMapsErrorKind Kind, string? Message, string? RawBody, TimeSpan? RetryAfter)

Parameters

Kind RustMapsErrorKind

The category of failure.

Message string

A human-readable message, when the API supplied one.

RawBody string

The raw response body, for diagnostics.

RetryAfter TimeSpan?

The retry delay parsed from a 429 response, when present.

Properties

Kind

The category of failure.

public RustMapsErrorKind Kind { get; init; }

Property Value

RustMapsErrorKind

Message

A human-readable message, when the API supplied one.

public string? Message { get; init; }

Property Value

string

RawBody

The raw response body, for diagnostics.

public string? RawBody { get; init; }

Property Value

string

RetryAfter

The retry delay parsed from a 429 response, when present.

public TimeSpan? RetryAfter { get; init; }

Property Value

TimeSpan?