Table of Contents

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

Code int

The error code.

Message string

The error message.

Properties

Code

The error code.

[JsonPropertyName("code")]
public int Code { get; init; }

Property Value

int

Message

The error message.

[JsonPropertyName("message")]
public string Message { get; init; }

Property Value

string