Class BulkWriterException

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
com.google.cloud.firestore.BulkWriterException
All Implemented Interfaces:
Serializable

public final class BulkWriterException extends FirestoreException
The error thrown when a BulkWriter operation fails.
See Also:
  • Constructor Details

    • BulkWriterException

      public BulkWriterException(io.grpc.Status status, String message, DocumentReference documentReference, com.google.cloud.firestore.BulkWriter.OperationType operationType, int failedAttempts)
  • Method Details

    • getStatus

      public io.grpc.Status getStatus()
      Overrides:
      getStatus in class FirestoreException
      Returns:
      The status code of the error.
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
      Returns:
      The error message of the error.
    • getDocumentReference

      public DocumentReference getDocumentReference()
      Returns:
      The DocumentReference the operation was performed on.
    • getOperationType

      public com.google.cloud.firestore.BulkWriter.OperationType getOperationType()
      Returns:
      The type of operation performed.
    • getFailedAttempts

      public int getFailedAttempts()
      Returns:
      How many times this operation has been attempted unsuccessfully.