Exception UnknownException (2.8.1)

publicclassUnknownExceptionextendsApiException

Exception thrown due to an unknown error. An example of where this error may be returned is if a Status value received from another address space belongs to an error-space that is not known in this address space. Also errors raised by APIs that do not return enough error information may be converted to this error.

Constructors

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

publicUnknownException(Stringmessage,Throwablecause,StatusCodestatusCode,booleanretryable)
Parameters
NameDescription
messageString
causeThrowable
statusCodeStatusCode
retryableboolean

UnknownException(Throwable cause, StatusCode statusCode, boolean retryable)

publicUnknownException(Throwablecause,StatusCodestatusCode,booleanretryable)
Parameters
NameDescription
causeThrowable
statusCodeStatusCode
retryableboolean

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

Last updated 2025-12-17 UTC.