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

public class WpBadRequestException extends RuntimeException
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 Details

    • WpBadRequestException

      public WpBadRequestException(WpError error)
      Creates a new exception for a 400 Bad Request response.
      Parameters:
      error - the error returned by the WordPress REST API