APIdia Launch Partner
Top Description Fields Constructors
java.net.http

public final Class UnsupportedProtocolVersionException

extends IOException
Class Inheritance
Imports
java.io.IOException, .Serial, java.net.http.HttpClient.Builder

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 java.net.http.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

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
UnsupportedProtocolVersionException(String
The detail message; can be null
message
)

Constructs an UnsupportedProtocolVersionException with the given detail message.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.io.IOException.serialVersionUID.

Annotations
@Serial

Constructor Detail

UnsupportedProtocolVersionExceptionback to summary
public UnsupportedProtocolVersionException(String message)

Constructs an UnsupportedProtocolVersionException with the given detail message.

Parameters
message:String

The detail message; can be null