Top Description Fields Constructors Methods
org.apache.http

public Class HttpException

extends Exception
Class Inheritance
Known Direct Subclasses
org.apache.http.MethodNotSupportedException, org.apache.http.ProtocolException

Signals that an HTTP exception has occurred.
Since
4.0

Field Summary

Modifier and TypeField and Description
private static final int
private static final long

Constructor Summary

AccessConstructor and Description
public
HttpException()

Creates a new HttpException with a null detail message.

public
HttpException(final String
the exception detail message
message
)

Creates a new HttpException with the specified detail message.

public
HttpException(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 HttpException with the specified detail message and cause.

Method Summary

Modifier and TypeMethod and Description
pack-priv static String

Returns:

a converted string.
clean
(final String
the source string.
message
)

Converts characters < 32 to hex.

Field Detail

FIRST_VALID_CHARback to summary
private static final int FIRST_VALID_CHAR
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

HttpExceptionback to summary
public HttpException()

Creates a new HttpException with a null detail message.

HttpExceptionback to summary
public HttpException(final String message)

Creates a new HttpException with the specified detail message.

Parameters
message:String

the exception detail message

HttpExceptionback to summary
public HttpException(final String message, final Throwable cause)

Creates a new HttpException 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

Method Detail

cleanback to summary
pack-priv static String clean(final String message)

Converts characters < 32 to hex.

Parameters
message:String

the source string.

Returns:String

a converted string.