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.String
method
private java.lang.String
responseBody
private int
status
private java.net.URI
uri
-
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.String
getResponseBody()
The response body from the HTTP response containing an error, if any.java.lang.String
message()
Deprecated.usegetResponseBody()
instead to avoid confusion withThrowable.getMessage()
.java.lang.String
method()
int
status()
java.net.URI
uri()
-
-
-
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.
-
-