Class DockerEngineException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.boot.buildpack.platform.docker.transport.DockerEngineException
- All Implemented Interfaces:
Serializable
Exception thrown when a call to the Docker API fails.
- Since:
- 2.3.0
- Author:
- Phillip Webb, Scott Frederick
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the errors from the body of the Docker API response, ornull
if the errors JSON could not be read.Return the reason phrase returned by the Docker API.Return the message from the body of the Docker API response, ornull
if the message JSON could not be read.int
Return the status code returned by the Docker API.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DockerEngineException
-
-
Method Details
-
getStatusCode
public int getStatusCode()Return the status code returned by the Docker API.- Returns:
- the statusCode the status code
-
getReasonPhrase
Return the reason phrase returned by the Docker API.- Returns:
- the reasonPhrase
-
getErrors
Return the errors from the body of the Docker API response, ornull
if the errors JSON could not be read.- Returns:
- the errors or
null
-
getResponseMessage
Return the message from the body of the Docker API response, ornull
if the message JSON could not be read.- Returns:
- the message or
null
-