public final enum

ErrorCode

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.google.firebase.ErrorCode

Class Overview

Platform-wide error codes that can be raised by Admin SDK APIs.

Summary

Enum Values
ErrorCode  ABORTED  Concurrency conflict, such as read-modify-write conflict. 
ErrorCode  ALREADY_EXISTS  The resource that a client tried to create already exists. 
ErrorCode  CANCELLED  Request cancelled by the client. 
ErrorCode  CONFLICT  Concurrency conflict, such as read-modify-write conflict. 
ErrorCode  DATA_LOSS  Unrecoverable data loss or data corruption. 
ErrorCode  DEADLINE_EXCEEDED  Request deadline exceeded. 
ErrorCode  FAILED_PRECONDITION  Request cannot be executed in the current system state, such as deleting a non-empty directory. 
ErrorCode  INTERNAL  Internal server error. 
ErrorCode  INVALID_ARGUMENT  Client specified an invalid argument. 
ErrorCode  NOT_FOUND  A specified resource is not found, or the request is rejected for unknown reasons, such as a blocked network address. 
ErrorCode  OUT_OF_RANGE  Client specified an invalid range. 
ErrorCode  PERMISSION_DENIED  Client does not have sufficient permission. 
ErrorCode  RESOURCE_EXHAUSTED  Either out of resource quota or rate limited. 
ErrorCode  UNAUTHENTICATED  Request not authenticated due to missing, invalid, or expired OAuth token. 
ErrorCode  UNAVAILABLE  Service unavailable. 
ErrorCode  UNKNOWN  Unknown server error. 
Public Methods
static ErrorCode valueOf(String name)
final static ErrorCode[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final ErrorCode ABORTED

Concurrency conflict, such as read-modify-write conflict.

public static final ErrorCode ALREADY_EXISTS

The resource that a client tried to create already exists.

public static final ErrorCode CANCELLED

Request cancelled by the client.

public static final ErrorCode CONFLICT

Concurrency conflict, such as read-modify-write conflict.

public static final ErrorCode DATA_LOSS

Unrecoverable data loss or data corruption. The client should report the error to the user.

public static final ErrorCode DEADLINE_EXCEEDED

Request deadline exceeded. This happens only if the caller sets a deadline that is shorter than the method's default deadline (i.e. requested deadline is not enough for the server to process the request) and the request did not finish within the deadline.

public static final ErrorCode FAILED_PRECONDITION

Request cannot be executed in the current system state, such as deleting a non-empty directory.

public static final ErrorCode INTERNAL

Internal server error. Typically a server bug.

public static final ErrorCode INVALID_ARGUMENT

Client specified an invalid argument.

public static final ErrorCode NOT_FOUND

A specified resource is not found, or the request is rejected for unknown reasons, such as a blocked network address.

public static final ErrorCode OUT_OF_RANGE

Client specified an invalid range.

public static final ErrorCode PERMISSION_DENIED

Client does not have sufficient permission. This can happen because the OAuth token does not have the right scopes, the client doesn't have permission, or the API has not been enabled for the client project.

public static final ErrorCode RESOURCE_EXHAUSTED

Either out of resource quota or rate limited.

public static final ErrorCode UNAUTHENTICATED

Request not authenticated due to missing, invalid, or expired OAuth token.

public static final ErrorCode UNAVAILABLE

Service unavailable. Typically the server is down.

public static final ErrorCode UNKNOWN

Unknown server error. Typically a server bug.

Public Methods

public static ErrorCode valueOf (String name)

public static final ErrorCode[] values ()