Class WPRequestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.ygbstudio.powerwp4j.exceptions.WPRequestException
- All Implemented Interfaces:
Serializable
Thrown when a request to the WordPress REST API fails or returns an error response.
This exception indicates that the WordPress site could not be reached, returned an error HTTP status, or responded with an unexpected body.
- Since:
- 0.1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWPRequestException(String message) Constructs a newWPRequestExceptionwith the specified detail message.WPRequestException(String message, Throwable cause) Constructs a newWPRequestExceptionwith the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WPRequestException
Constructs a newWPRequestExceptionwith the specified detail message.- Parameters:
message- the detail message explaining the reason of the failure.
-
WPRequestException
Constructs a newWPRequestExceptionwith the specified detail message and cause.- Parameters:
message- the detail message explaining the reason of the failurecause- the cause of the failure, may benull
-