Class UnsupportedProtocolVersionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.net.http.UnsupportedProtocolVersionException
All Implemented Interfaces:
Serializable

public final class UnsupportedProtocolVersionException extends IOException
Thrown when the HTTP client doesn't support a particular HTTP version.
API Note:
Typically, this exception may be thrown when attempting to build an HttpClient configured to use HTTP version 3 by default, when the underlying SSLContext implementation does not meet the requirements for supporting the HttpClient's implementation of the underlying QUIC transport protocol.
Since:
26
See Also:
  • Constructor Details

    • UnsupportedProtocolVersionException

      public UnsupportedProtocolVersionException(String message)
      Constructs an UnsupportedProtocolVersionException with the given detail message.
      Parameters:
      message - The detail message; can be null