Class InvalidRequestUriException

All Implemented Interfaces:
Serializable

public final class InvalidRequestUriException extends IllegalArgumentException
Thrown when the request URI and query string the container passed on do not form a valid URI, for example because of a malformed escape sequence in the query string. DefaultServletHttpHandler answers such a request with a 400 before throwing it from DefaultServletHttpHandler.exchange(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse); DefaultServletHttpHandler.service(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse) does not throw it at all.

Extends IllegalArgumentException, which is what URI.create(String) threw before.

Since:
5.6.3
See Also: