Exception UnavailableException (2.60.0)

publicclass UnavailableExceptionextendsApiException

Exception thrown when the service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff.

Constructors

UnavailableException(String message, Throwable cause, StatusCode statusCode, boolean retryable)

publicUnavailableException(Stringmessage,Throwablecause,StatusCodestatusCode,booleanretryable)
Parameters
Name Description
message String
cause Throwable
statusCode StatusCode
retryable boolean

UnavailableException(Throwable cause, StatusCode statusCode, boolean retryable)

publicUnavailableException(Throwablecause,StatusCodestatusCode,booleanretryable)
Parameters
Name Description
cause Throwable
statusCode StatusCode
retryable boolean

UnavailableException(Throwable cause, StatusCode statusCode, boolean retryable, ErrorDetails errorDetails)

publicUnavailableException(Throwablecause,StatusCodestatusCode,booleanretryable,ErrorDetailserrorDetails)
Parameters
Name Description
cause Throwable
statusCode StatusCode
retryable boolean
errorDetails ErrorDetails

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.