Package com.google.cloud.firestore
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
The error thrown when a BulkWriter operation fails.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.cloud.BaseServiceException
com.google.cloud.BaseServiceException.Error, com.google.cloud.BaseServiceException.ExceptionData -
Field Summary
Fields inherited from class com.google.cloud.BaseServiceException
UNKNOWN_CODE -
Constructor Summary
ConstructorsConstructorDescriptionBulkWriterException(io.grpc.Status status, String message, DocumentReference documentReference, com.google.cloud.firestore.BulkWriter.OperationType operationType, int failedAttempts) -
Method Summary
Modifier and TypeMethodDescriptionintcom.google.cloud.firestore.BulkWriter.OperationTypeio.grpc.StatusMethods inherited from class com.google.cloud.firestore.FirestoreException
forApiException, forApiException, forInvalidArgument, forIOException, forServerRejection, forServerRejectionMethods inherited from class com.google.cloud.BaseServiceException
equals, getCode, getDebugInfo, getLocation, getReason, hashCode, isRetryable, isRetryable, isRetryable, translate, translateMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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:
getStatusin classFirestoreException- Returns:
- The status code of the error.
-
getMessage
- Overrides:
getMessagein classThrowable- Returns:
- The error message of the error.
-
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.
-