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
KindRustMapsErrorKindThe category of failure.
MessagestringA human-readable message, when the API supplied one.
RawBodystringThe raw response body, for diagnostics.
RetryAfterTimeSpan?The retry delay parsed from a 429 response, when present.
Properties
Kind
The category of failure.
public RustMapsErrorKind Kind { get; init; }
Property Value
Message
A human-readable message, when the API supplied one.
public string? Message { get; init; }
Property Value
RawBody
The raw response body, for diagnostics.
public string? RawBody { get; init; }
Property Value
RetryAfter
The retry delay parsed from a 429 response, when present.
public TimeSpan? RetryAfter { get; init; }