Top Description Fields Constructors
org.apache.hc.core5.http

public Class UnsupportedHttpVersionException

extends ProtocolException
Class Inheritance

Signals an unsupported version of the HTTP protocol.
Since
4.0

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
UnsupportedHttpVersionException()

Creates an exception without a detail message.

public
UnsupportedHttpVersionException(final ProtocolVersion
The unsupported ProtocolVersion.
protocolVersion
)

Creates an exception with a detail message for the given ProtocolVersion.

public
UnsupportedHttpVersionException(final String
The exception detail message
message
)

Creates an exception with the specified detail message.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.hc.core5.http.ProtocolException.serialVersionUID.

Constructor Detail

UnsupportedHttpVersionExceptionback to summary
public UnsupportedHttpVersionException()

Creates an exception without a detail message.

UnsupportedHttpVersionExceptionback to summary
public UnsupportedHttpVersionException(final ProtocolVersion protocolVersion)

Creates an exception with a detail message for the given ProtocolVersion.

Parameters
protocolVersion:ProtocolVersion

The unsupported ProtocolVersion.

UnsupportedHttpVersionExceptionback to summary
public UnsupportedHttpVersionException(final String message)

Creates an exception with the specified detail message.

Parameters
message:String

The exception detail message