Send feedback
Exception CheckedApiException (1.13.8)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
public class CheckedApiException extends Exception
A wrapper around an ApiException that is a checked exception to help ensure correctness of
internal classes as well as ease construction of ApiExceptions. Should not be exposed in end-user
interfaces.
Static Methods
fromCode(StatusCode.Code code)
public static StatusCode fromCode(StatusCode.Code code)
Parameter
Name
Description
code
Code
Constructors
CheckedApiException(ApiException underlying)
public CheckedApiException(ApiException underlying)
CheckedApiException(StatusCode.Code code)
public CheckedApiException(StatusCode.Code code)
Parameter
Name
Description
code
Code
CheckedApiException(String message, StatusCode.Code code)
public CheckedApiException(String message, StatusCode.Code code)
Parameters
Name
Description
message
String
code
Code
CheckedApiException(String message, Throwable cause, StatusCode.Code code)
public CheckedApiException(String message, Throwable cause, StatusCode.Code code)
CheckedApiException(Throwable cause, StatusCode.Code code)
public CheckedApiException(Throwable cause, StatusCode.Code code)
Fields
underlying
public final ApiException underlying
Methods
code()
public StatusCode.Code code()
Returns
Type
Description
Code
Send feedback
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 2024-07-09 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?