FirebaseFunctionsException.Code

enum FirebaseFunctionsException.Code


The set of error status codes that can be returned from a Callable HTTPS tigger. These are the canonical error codes for Google APIs, as documented here: https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto#L26

Summary

Enum Values

ABORTED

The operation was aborted, typically due to a concurrency issue like transaction aborts, etc.

ALREADY_EXISTS

Some document that we attempted to create already exists.

CANCELLED

The operation was cancelled (typically by the caller).

DATA_LOSS

Unrecoverable data loss or corruption.

DEADLINE_EXCEEDED

Deadline expired before operation could complete.

FAILED_PRECONDITION

Operation was rejected because the system is not in a state required for the operation's execution.

INTERNAL

Internal errors.

INVALID_ARGUMENT

Client specified an invalid argument.

NOT_FOUND

Some requested document was not found.

OK

The operation completed successfully.

OUT_OF_RANGE

Operation was attempted past the valid range.

PERMISSION_DENIED

The caller does not have permission to execute the specified operation.

RESOURCE_EXHAUSTED

Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space.

UNAUTHENTICATED

The request does not have valid authentication credentials for the operation.

UNAVAILABLE

The service is currently unavailable.

UNIMPLEMENTED

Operation is not implemented or not supported/enabled.

UNKNOWN

Unknown error or an error from a different error domain.

Public functions

java-static FirebaseFunctionsException.Code!
valueOf(name: String!)

Returns the enum constant of this type with the specified name.

java-static Array<FirebaseFunctionsException.Code!>!

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

ABORTED

val FirebaseFunctionsException.Code.ABORTEDFirebaseFunctionsException.Code

The operation was aborted, typically due to a concurrency issue like transaction aborts, etc.

ALREADY_EXISTS

val FirebaseFunctionsException.Code.ALREADY_EXISTSFirebaseFunctionsException.Code

Some document that we attempted to create already exists.

CANCELLED

val FirebaseFunctionsException.Code.CANCELLEDFirebaseFunctionsException.Code

The operation was cancelled (typically by the caller).

DATA_LOSS

val FirebaseFunctionsException.Code.DATA_LOSSFirebaseFunctionsException.Code

Unrecoverable data loss or corruption.

DEADLINE_EXCEEDED

val FirebaseFunctionsException.Code.DEADLINE_EXCEEDEDFirebaseFunctionsException.Code

Deadline expired before operation could complete. For operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire.

FAILED_PRECONDITION

val FirebaseFunctionsException.Code.FAILED_PRECONDITIONFirebaseFunctionsException.Code

Operation was rejected because the system is not in a state required for the operation's execution.

INTERNAL

val FirebaseFunctionsException.Code.INTERNALFirebaseFunctionsException.Code

Internal errors. Means some invariants expected by underlying system has been broken. If you see one of these errors, something is very broken.

INVALID_ARGUMENT

val FirebaseFunctionsException.Code.INVALID_ARGUMENTFirebaseFunctionsException.Code

Client specified an invalid argument. Note that this differs from FAILED_PRECONDITION. INVALID_ARGUMENT indicates arguments that are problematic regardless of the state of the system (e.g., an invalid field name).

NOT_FOUND

val FirebaseFunctionsException.Code.NOT_FOUNDFirebaseFunctionsException.Code

Some requested document was not found.

OK

val FirebaseFunctionsException.Code.OKFirebaseFunctionsException.Code

The operation completed successfully. FirebaseFunctionsException will never have a status of OK.

OUT_OF_RANGE

val FirebaseFunctionsException.Code.OUT_OF_RANGEFirebaseFunctionsException.Code

Operation was attempted past the valid range.

PERMISSION_DENIED

val FirebaseFunctionsException.Code.PERMISSION_DENIEDFirebaseFunctionsException.Code

The caller does not have permission to execute the specified operation.

RESOURCE_EXHAUSTED

val FirebaseFunctionsException.Code.RESOURCE_EXHAUSTEDFirebaseFunctionsException.Code

Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space.

UNAUTHENTICATED

val FirebaseFunctionsException.Code.UNAUTHENTICATEDFirebaseFunctionsException.Code

The request does not have valid authentication credentials for the operation.

UNAVAILABLE

val FirebaseFunctionsException.Code.UNAVAILABLEFirebaseFunctionsException.Code

The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff.

UNIMPLEMENTED

val FirebaseFunctionsException.Code.UNIMPLEMENTEDFirebaseFunctionsException.Code

Operation is not implemented or not supported/enabled.

UNKNOWN

val FirebaseFunctionsException.Code.UNKNOWNFirebaseFunctionsException.Code

Unknown error or an error from a different error domain.

Public functions

valueOf

java-static fun valueOf(name: String!): FirebaseFunctionsException.Code!

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Returns
FirebaseFunctionsException.Code!

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

java-static fun values(): Array<FirebaseFunctionsException.Code!>!

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

Returns
Array<FirebaseFunctionsException.Code!>!

an array containing the constants of this enum type, in the order they're declared