Exception FirestoreException (3.26.5)

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
Name Description
exception ApiException
Returns
Type Description
FirestoreException

The FirestoreException

forApiException(ApiException exception, String message)

public static FirestoreException forApiException(ApiException exception, String message)

Creates a FirestoreException from an ApiException.

Parameters
Name Description
exception ApiException
message String
Returns
Type Description
FirestoreException

The FirestoreException

forIOException(IOException exception, boolean retryable)

public static FirestoreException forIOException(IOException exception, boolean retryable)

Creates a FirestoreException from an IOException.

Parameters
Name Description
exception IOException
retryable boolean
Returns
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.

Parameters
Name Description
message String
params Object[]
Returns
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.

Parameters
Name Description
status io.grpc.Status
message String
params Object[]
Returns
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.

Parameters
Name Description
status io.grpc.Status
cause Throwable
message String
params Object[]
Returns
Type Description
FirestoreException

The FirestoreException

Methods

getStatus()

public Status getStatus()
Returns
Type Description
io.grpc.Status