FirebaseFunctionsException.Code.Companion

public static class FirebaseFunctionsException.Code.Companion


Summary

Public methods

static final @NonNull FirebaseFunctionsException.Code
fromHttpStatus(int status)

Takes an HTTP status code and returns the corresponding Code error code.

static final @NonNull FirebaseFunctionsException.Code
fromValue(int value)

Public methods

fromHttpStatus

public static final @NonNull FirebaseFunctionsException.Code fromHttpStatus(int status)

Takes an HTTP status code and returns the corresponding Code error code. This is the standard HTTP status code -> error mapping defined in: https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto

Parameters
int status

An HTTP status code.

Returns
@NonNull FirebaseFunctionsException.Code

The corresponding Code, or Code.UNKNOWN if none.

fromValue

public static final @NonNull FirebaseFunctionsException.Code fromValue(int value)