Exception FirestoreException (3.14.4)

public class FirestoreException extends BaseGrpcServiceException

A Firestore Service exception.

Static Methods

forApiException(ApiException exception)

public static FirestoreException forApiException(ApiException exception)

Creates a FirestoreException from an ApiException.

Parameter
NameDescription
exceptionApiException
Returns
TypeDescription
FirestoreException

The FirestoreException

forApiException(ApiException exception, String message)

public static FirestoreException forApiException(ApiException exception, String message)

Creates a FirestoreException from an ApiException.

Parameters
NameDescription
exceptionApiException
messageString
Returns
TypeDescription
FirestoreException

The FirestoreException

forIOException(IOException exception, boolean retryable)

public static FirestoreException forIOException(IOException exception, boolean retryable)

Creates a FirestoreException from an IOException.

Parameters
NameDescription
exceptionIOException
retryableboolean
Returns
TypeDescription
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.

Parameters
NameDescription
messageString
paramsObject[]
Returns
TypeDescription
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.

Parameters
NameDescription
statusio.grpc.Status
messageString
paramsObject[]
Returns
TypeDescription
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.

Parameters
NameDescription
statusio.grpc.Status
causeThrowable
messageString
paramsObject[]
Returns
TypeDescription
FirestoreException

The FirestoreException

Methods

getStatus()

public Status getStatus()
Returns
TypeDescription
io.grpc.Status