Exception UnknownException (2.72.1)

publicclass UnknownExceptionextendsApiException

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
Name Description
message String
cause Throwable
statusCode StatusCode
retryable boolean

UnknownException(Throwable cause, StatusCode statusCode, boolean retryable)

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

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

publicUnknownException(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.