Exception CheckedApiException (1.13.7)

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
Returns
Type Description
StatusCode

Constructors

CheckedApiException(ApiException underlying)

public CheckedApiException(ApiException underlying)
Parameter
Name Description
underlying ApiException

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)
Parameters
Name Description
message String
cause Throwable
code Code

CheckedApiException(Throwable cause, StatusCode.Code code)

public CheckedApiException(Throwable cause, StatusCode.Code code)
Parameters
Name Description
cause Throwable
code Code

Fields

underlying

public final ApiException underlying
Field Value
Type Description
ApiException

Methods

code()

public StatusCode.Code code()
Returns
Type Description
Code