FirebaseFirestoreException

public class FirebaseFirestoreException extends FirebaseException


A class of exceptions thrown by Cloud Firestore.

Summary

Nested types

The set of Cloud Firestore status codes.

Public constructors

Public methods

@NonNull FirebaseFirestoreException.Code

Gets the error code for the Cloud Firestore operation that failed.

Inherited methods

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] stackTrace)
String

Public fields

Public constructors

FirebaseFirestoreException

public FirebaseFirestoreException(
    @NonNull String detailMessage,
    @NonNull FirebaseFirestoreException.Code code
)

FirebaseFirestoreException

public FirebaseFirestoreException(
    @NonNull String detailMessage,
    @NonNull FirebaseFirestoreException.Code code,
    @Nullable Throwable cause
)

Public methods

getCode

public @NonNull FirebaseFirestoreException.Code getCode()

Gets the error code for the Cloud Firestore operation that failed.

Returns
@NonNull FirebaseFirestoreException.Code

the code for the FirebaseFirestoreException.