Exception CheckedApiException (1.10.0)

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
NameDescription
codeCode
Returns
TypeDescription
StatusCode

Constructors

CheckedApiException(ApiException underlying)

public CheckedApiException(ApiException underlying)
Parameter
NameDescription
underlyingApiException

CheckedApiException(StatusCode.Code code)

public CheckedApiException(StatusCode.Code code)
Parameter
NameDescription
codeCode

CheckedApiException(String message, StatusCode.Code code)

public CheckedApiException(String message, StatusCode.Code code)
Parameters
NameDescription
messageString
codeCode

CheckedApiException(String message, Throwable cause, StatusCode.Code code)

public CheckedApiException(String message, Throwable cause, StatusCode.Code code)
Parameters
NameDescription
messageString
causeThrowable
codeCode

CheckedApiException(Throwable cause, StatusCode.Code code)

public CheckedApiException(Throwable cause, StatusCode.Code code)
Parameters
NameDescription
causeThrowable
codeCode

Fields

underlying

public final ApiException underlying
Field Value
TypeDescription
ApiException

Methods

code()

public StatusCode.Code code()
Returns
TypeDescription
Code