Class CloudflareNotFoundException

All Implemented Interfaces:
Serializable

public class CloudflareNotFoundException extends CloudflareApiException
This exception is thrown to indicate that a requested resource was not found during interaction with the Cloudflare API.

It is thrown if Cloudflare responds with HTTP status 404, or if a result is empty and 'emptyResultThrowsException' is enabled.

See Also:
  • Constructor Details

    • CloudflareNotFoundException

      public CloudflareNotFoundException(String message)
      Constructs a new CloudflareNotFoundException with the specified detail message.
      Parameters:
      message - the detail message, which provides additional context about the "not found" error encountered during interaction with the Cloudflare API.
    • CloudflareNotFoundException

      public CloudflareNotFoundException(String message, int statusCode, List<ResponseResultInfo.Error> errors)
      Constructs a new CloudflareNotFoundException caused by an API response.
      Parameters:
      message - the detail message
      statusCode - the HTTP status code of the response
      errors - the errors reported by Cloudflare, may be null