Class ApiError
- Namespace
- Cloudflare.NET.Core.Models
- Assembly
- Cloudflare.NET.dll
Represents a single error object in a Cloudflare API response.
public sealed record ApiError : IEquatable<ApiError>
- Inheritance
-
ApiError
- Implements
- Inherited Members
Constructors
ApiError(int, string)
Represents a single error object in a Cloudflare API response.
public ApiError(int Code, string Message)
Parameters
Properties
Code
The error code.
[JsonPropertyName("code")]
public int Code { get; init; }
Property Value
Message
The error message.
[JsonPropertyName("message")]
public string Message { get; init; }