public class FirestoreException
extends com.google.cloud.grpc.BaseGrpcServiceException
Modifier and Type | Method and Description |
---|---|
static FirestoreException |
forApiException(com.google.api.gax.rpc.ApiException exception)
Creates a FirestoreException from an ApiException.
|
static FirestoreException |
forApiException(com.google.api.gax.rpc.ApiException exception,
String message)
Creates a FirestoreException from an ApiException.
|
static FirestoreException |
forInvalidArgument(String message,
Object... params)
Creates a FirestoreException with an
INVALID_ARGUMENT status code and the provided
message in a nested exception. |
static FirestoreException |
forIOException(IOException exception,
boolean retryable)
Creates a FirestoreException from an IOException.
|
static FirestoreException |
forServerRejection(io.grpc.Status status,
String message,
Object... params)
Creates a FirestoreException with the provided GRPC Status code and message in a nested
exception.
|
static FirestoreException |
forServerRejection(io.grpc.Status status,
Throwable cause,
String message,
Object... params)
Creates a FirestoreException with the provided GRPC Status code and message in a nested
exception.
|
io.grpc.Status |
getStatus() |
equals, getCode, getDebugInfo, getLocation, getReason, hashCode, isRetryable, isRetryable, isRetryable, translate, translate
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
@BetaApi public static FirestoreException forInvalidArgument(String message, Object... params)
INVALID_ARGUMENT
status code and the provided
message in a nested exception.@BetaApi public static FirestoreException forServerRejection(io.grpc.Status status, String message, Object... params)
@BetaApi public static FirestoreException forServerRejection(io.grpc.Status status, @Nullable Throwable cause, String message, Object... params)
@BetaApi public static FirestoreException forIOException(IOException exception, boolean retryable)
@BetaApi public static FirestoreException forApiException(com.google.api.gax.rpc.ApiException exception)
@BetaApi public static FirestoreException forApiException(com.google.api.gax.rpc.ApiException exception, String message)
@BetaApi @Nullable public io.grpc.Status getStatus()
Copyright © 2023 Google LLC. All rights reserved.