- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.rxmicro.common.RxMicroException
-
- io.rxmicro.http.error.HttpErrorException
-
- io.rxmicro.http.client.HttpClientTimeoutException
-
- All Implemented Interfaces:
Serializable
public final class HttpClientTimeoutException extends HttpErrorException
A class signaling that the HTTP client didn’t receive a response from the server in given time.- Since:
- 0.1
- Author:
- nedis
- See Also:
HttpClient, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intSTATUS_CODE
-
Constructor Summary
Constructors Constructor Description HttpClientTimeoutException(String message, Object... args)Creates a HTTP error with error message.
-
Method Summary
-
Methods inherited from class io.rxmicro.http.error.HttpErrorException
getStatusCode, isClientErrorCode, isInformationalCode, isRedirectCode, isServerErrorCode, isSuccessCode
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
STATUS_CODE
public static final int STATUS_CODE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HttpClientTimeoutException
public HttpClientTimeoutException(String message, Object... args)
Creates a HTTP error with error message.For all child classes which extend the HttpErrorException class, when creating an exception instance the stack trace is not filled, as this information is redundant.
(This behavior is achieved by using the
RuntimeException(String, Throwable, boolean, boolean).)(FYI: This constructor uses
Formats.format(String, Object...)method to format error message.)- Parameters:
message- the error message templateargs- the error message template argument- Throws:
NullPointerException- if the error message template isnullIllegalArgumentException- if detected a redundant placeholder or missing argument
-
-