Class FirestoreException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.google.cloud.BaseServiceException
com.google.cloud.grpc.BaseGrpcServiceException
com.google.cloud.firestore.FirestoreException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BulkWriterException

public class FirestoreException extends com.google.cloud.grpc.BaseGrpcServiceException
A Firestore Service exception.
See Also:
  • Method Details

    • forInvalidArgument

      @BetaApi public static FirestoreException forInvalidArgument(String message, Object... params)
      Creates a FirestoreException with an INVALID_ARGUMENT status code and the provided message in a nested exception.
      Returns:
      The FirestoreException
    • forServerRejection

      @BetaApi public 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.
      Returns:
      The FirestoreException
    • forServerRejection

      @BetaApi public static FirestoreException forServerRejection(io.grpc.Status status, @Nullable Throwable cause, String message, Object... params)
      Creates a FirestoreException with the provided GRPC Status code and message in a nested exception.
      Returns:
      The FirestoreException
    • forIOException

      @BetaApi public static FirestoreException forIOException(IOException exception, boolean retryable)
      Creates a FirestoreException from an IOException.
      Returns:
      The FirestoreException
    • forApiException

      @BetaApi public static FirestoreException forApiException(com.google.api.gax.rpc.ApiException exception)
      Creates a FirestoreException from an ApiException.
      Returns:
      The FirestoreException
    • forApiException

      @BetaApi public static FirestoreException forApiException(com.google.api.gax.rpc.ApiException exception, String message)
      Creates a FirestoreException from an ApiException.
      Returns:
      The FirestoreException
    • getStatus

      @BetaApi @Nullable public io.grpc.Status getStatus()