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
messagestringThe message that describes the error.
errorsIReadOnlyList<ApiError>The list of specific errors returned by the Cloudflare API.
innerExceptionExceptionThe 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; }