Class DockerRequestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.spotify.docker.client.exceptions.DockerException
-
- com.spotify.docker.client.exceptions.DockerRequestException
-
- All Implemented Interfaces:
java.io.Serializable
public class DockerRequestException extends DockerException
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringmethodprivate java.lang.StringresponseBodyprivate intstatusprivate java.net.URIuri
-
Constructor Summary
Constructors Constructor Description DockerRequestException(java.lang.String method, java.net.URI uri, int status, java.lang.String responseBody, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetResponseBody()The response body from the HTTP response containing an error, if any.java.lang.Stringmessage()Deprecated.usegetResponseBody()instead to avoid confusion withThrowable.getMessage().java.lang.Stringmethod()intstatus()java.net.URIuri()
-
-
-
Method Detail
-
method
public java.lang.String method()
-
uri
public java.net.URI uri()
-
status
public int status()
-
message
@Deprecated @Nullable public java.lang.String message()
Deprecated.usegetResponseBody()instead to avoid confusion withThrowable.getMessage().The response body from the HTTP response containing an error, if any.
-
getResponseBody
@Nullable public java.lang.String getResponseBody()
The response body from the HTTP response containing an error, if any.- Returns:
- response body or null.
-
-