Skip to main content

IsNotFound

Checks if the provided error indicates a "NotFound" GRPC status code.

def IsNotFound(
err: error
) - > bool

Checks if a given error indicates a "Not Found" gRPC status. This function is used to determine if an error returned from a gRPC call signifies that the requested resource was not found.

Parameters

NameTypeDescription
errerrorThe error to check for a "Not Found" gRPC status.

Returns

TypeDescription
boolTrue if the error is a gRPC "Not Found" status, False otherwise.