- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.github.alexdlaird.http.HttpClientException
-
- All Implemented Interfaces:
java.io.Serializable
public class HttpClientException extends java.lang.RuntimeExceptionRoot exception forDefaultHttpClientinteractions.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpClientException(java.lang.String message, java.lang.Exception cause)An exception with a message and a root cause.HttpClientException(java.lang.String message, java.lang.Exception cause, java.lang.String url, int statusCode, java.lang.String body)An exception with a message, root cause, and HTTP response data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBody()Get the response body.intgetStatusCode()Get the HTTP status code.java.lang.StringgetUrl()Get the URL.
-
-
-
Constructor Detail
-
HttpClientException
public HttpClientException(java.lang.String message, java.lang.Exception cause)An exception with a message and a root cause.- Parameters:
message- The message describing the exception.cause- The initial cause of the exception.
-
HttpClientException
public HttpClientException(java.lang.String message, java.lang.Exception cause, java.lang.String url, int statusCode, java.lang.String body)An exception with a message, root cause, and HTTP response data.- Parameters:
message- The message describing the exception.cause- The initial cause of the exception.url- The URL.statusCode- The HTTP status code.body- The response body.
-
-