public class FirestoreException extends BaseGrpcServiceExceptionA Firestore Service exception.
Static Methods
forApiException(ApiException exception)
public static FirestoreException forApiException(ApiException exception)Creates a FirestoreException from an ApiException.
| Name | Description |
| exception | ApiException |
| Type | Description |
| FirestoreException | The FirestoreException |
forApiException(ApiException exception, String message)
public static FirestoreException forApiException(ApiException exception, String message)Creates a FirestoreException from an ApiException.
| Name | Description |
| exception | ApiException |
| message | String |
| Type | Description |
| FirestoreException | The FirestoreException |
forIOException(IOException exception, boolean retryable)
public static FirestoreException forIOException(IOException exception, boolean retryable)Creates a FirestoreException from an IOException.
| Name | Description |
| exception | IOException |
| retryable | boolean |
| Type | Description |
| FirestoreException | The FirestoreException |
forInvalidArgument(String message, Object[] params)
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.
| Name | Description |
| message | String |
| params | Object[] |
| Type | Description |
| FirestoreException | The FirestoreException |
forServerRejection(Status status, String message, Object[] params)
public static FirestoreException forServerRejection(Status status, String message, Object[] params)Creates a FirestoreException with the provided GRPC Status code and message in a nested exception.
| Name | Description |
| status | io.grpc.Status |
| message | String |
| params | Object[] |
| Type | Description |
| FirestoreException | The FirestoreException |
forServerRejection(Status status, Throwable cause, String message, Object[] params)
public static FirestoreException forServerRejection(Status status, Throwable cause, String message, Object[] params)Creates a FirestoreException with the provided GRPC Status code and message in a nested exception.
| Name | Description |
| status | io.grpc.Status |
| cause | Throwable |
| message | String |
| params | Object[] |
| Type | Description |
| FirestoreException | The FirestoreException |
Methods
getStatus()
public Status getStatus()| Type | Description |
| io.grpc.Status |