public class ErrorResponseUtil extends Object
JSON-encoded error responses.| Modifier and Type | Method and Description |
|---|---|
static com.google.cloud.tools.jib.registry.ErrorCodes |
getErrorCode(com.google.api.client.http.HttpResponseException httpResponseException)
Extract an
ErrorCodes response from the error object encoded in an HttpResponseException. |
public static com.google.cloud.tools.jib.registry.ErrorCodes getErrorCode(com.google.api.client.http.HttpResponseException httpResponseException)
throws com.google.api.client.http.HttpResponseException
ErrorCodes response from the error object encoded in an HttpResponseException.httpResponseException - the response exceptionErrorCodes if foundcom.google.api.client.http.HttpResponseException - rethrows the original exception if an error object could not be
parsed, if there were multiple error objects, or if the error code is unknown.Copyright © 2019. All rights reserved.