Package codes.thischwa.cf
Class CloudflareNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
codes.thischwa.cf.CloudflareApiException
codes.thischwa.cf.CloudflareNotFoundException
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Fields inherited from class codes.thischwa.cf.CloudflareApiException
NO_STATUS_CODE -
Constructor Summary
ConstructorsConstructorDescriptionCloudflareNotFoundException(String message) Constructs a new CloudflareNotFoundException with the specified detail message.CloudflareNotFoundException(String message, int statusCode, List<ResponseResultInfo.Error> errors) Constructs a new CloudflareNotFoundException caused by an API response. -
Method Summary
Methods inherited from class codes.thischwa.cf.CloudflareApiException
getErrors, getStatusCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CloudflareNotFoundException
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 messagestatusCode- the HTTP status code of the responseerrors- the errors reported by Cloudflare, may benull
-