Table of Contents

Class CloudflareApiException

Namespace
Cloudflare.NET.Core.Exceptions
Assembly
Cloudflare.NET.dll

Represents an exception thrown when the Cloudflare API returns a non-successful response (i.e., success: false).

public class CloudflareApiException : Exception, ISerializable
Inheritance
CloudflareApiException
Implements
Inherited Members

Constructors

CloudflareApiException(string, IReadOnlyList<ApiError>, Exception?)

Initializes a new instance of the CloudflareApiException class.

public CloudflareApiException(string message, IReadOnlyList<ApiError> errors, Exception? innerException = null)

Parameters

message string

The message that describes the error.

errors IReadOnlyList<ApiError>

The list of specific errors returned by the Cloudflare API.

innerException Exception

The exception that is the cause of the current exception, or a null reference.

Properties

Errors

Gets the detailed error information returned by the Cloudflare API.

public IReadOnlyList<ApiError> Errors { get; }

Property Value

IReadOnlyList<ApiError>