Package org.apache.hc.core5.http
Class HttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.hc.core5.http.HttpException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HPackException,ProtocolException
Signals that an HTTP exception has occurred.
- Since:
- 4.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final long -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new HttpException with anulldetail message.HttpException(String message) Creates a new HttpException with the specified detail message.HttpException(String format, Object... args) Constructs a new HttpException with the specified detail message.HttpException(String message, Throwable cause) Creates a new HttpException with the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
FIRST_VALID_CHAR
private static final int FIRST_VALID_CHAR- See Also:
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
HttpException
public HttpException()Creates a new HttpException with anulldetail message. -
HttpException
Creates a new HttpException with the specified detail message.- Parameters:
message- the exception detail message
-
HttpException
Constructs a new HttpException with the specified detail message.- Parameters:
format- The exception detail message format; seeString.format(String, Object...).args- The exception detail message arguments; seeString.format(String, Object...).- Since:
- 5.0
-
HttpException
Creates a new HttpException with the specified detail message and cause.- Parameters:
message- the exception detail messagecause- theThrowablethat caused this exception, ornullif the cause is unavailable, unknown, or not aThrowable
-
-
Method Details
-
clean
Cleans the given String by converting characters with values less than 32 to equivalent hexadecimal codes.- Parameters:
message- the source string.- Returns:
- a converted string.
-