Top Description Fields Constructors Methods
org.apache.http

public Class ProtocolException

extends HttpException
Class Inheritance
Known Direct Subclasses
org.apache.http.UnsupportedHttpVersionException

Signals that an HTTP protocol violation has occurred. For example a malformed status line or headers, a missing message body, etc.
Since
4.0

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
ProtocolException()

Creates a new ProtocolException with a null detail message.

public
ProtocolException(final String
The exception detail message
message
)

Creates a new ProtocolException with the specified detail message.

public
ProtocolException(final String
the exception detail message
message
,
final Throwable
the Throwable that caused this exception, or null if the cause is unavailable, unknown, or not a Throwable
cause
)

Creates a new ProtocolException with the specified detail message and cause.

Method Summary

Inherited from org.apache.http.HttpException:
clean

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.http.HttpException.serialVersionUID.

Constructor Detail

ProtocolExceptionback to summary
public ProtocolException()

Creates a new ProtocolException with a null detail message.

ProtocolExceptionback to summary
public ProtocolException(final String message)

Creates a new ProtocolException with the specified detail message.

Parameters
message:String

The exception detail message

ProtocolExceptionback to summary
public ProtocolException(final String message, final Throwable cause)

Creates a new ProtocolException with the specified detail message and cause.

Parameters
message:String

the exception detail message

cause:Throwable

the Throwable that caused this exception, or null if the cause is unavailable, unknown, or not a Throwable