Exception FirestoreException (3.21.0)
Stay organized with collections
Save and categorize content based on your preferences.
public class FirestoreException extends BaseGrpcServiceException
A Firestore Service exception.
Inherited Members
com.google.cloud.BaseServiceException.equals(java.lang.Object)
com.google.cloud.BaseServiceException.getCode()
com.google.cloud.BaseServiceException.getDebugInfo()
com.google.cloud.BaseServiceException.getLocation()
com.google.cloud.BaseServiceException.getReason()
com.google.cloud.BaseServiceException.hashCode()
com.google.cloud.BaseServiceException.isRetryable()
com.google.cloud.BaseServiceException.isRetryable(boolean,java.io.IOException)
com.google.cloud.BaseServiceException.isRetryable(java.lang.Integer,java.lang.String,boolean,java.util.Set<com.google.cloud.BaseServiceException.Error>)
com.google.cloud.BaseServiceException.translate(com.google.cloud.RetryHelper.RetryHelperException)
com.google.cloud.BaseServiceException.translate(java.util.concurrent.ExecutionException)
Static Methods
forApiException(ApiException exception)
public static FirestoreException forApiException(ApiException exception)
Creates a FirestoreException from an ApiException.
forApiException(ApiException exception, String message)
public static FirestoreException forApiException(ApiException exception, String message)
Creates a FirestoreException from an ApiException.
forIOException(IOException exception, boolean retryable)
public static FirestoreException forIOException(IOException exception, boolean retryable)
Creates a FirestoreException from an IOException.
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.
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.
Parameters |
Name |
Description |
status |
io.grpc.Status
|
message |
String
|
params |
Object[]
|
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.
Methods
getStatus()
public Status getStatus()
Returns |
Type |
Description |
io.grpc.Status |
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-24 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-09-24 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-24 UTC."]]