Skip to main content

IsNotFound

Checks if the given error is a gRPC "NotFound" error. It extracts the gRPC status from the error and returns true if the status code is "NotFound".

def IsNotFound(
err: error
) - > bool

Checks if the provided error indicates a "Not Found" gRPC status. This function is used to determine if a gRPC error specifically signifies that a 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.