Class WpBadRequestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.evisentin.wordpress.client.domain.exception.WpBadRequestException
- All Implemented Interfaces:
Serializable
Exception thrown when the WordPress REST API returns a 400 Bad Request response.
This typically indicates that the request sent to the API is invalid, malformed, or contains incorrect parameters, such as missing required fields, invalid values, or failed validation.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWpBadRequestException(WpError error) Creates a new exception for a 400 Bad Request response. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WpBadRequestException
Creates a new exception for a 400 Bad Request response.- Parameters:
error- the error returned by the WordPress REST API
-