MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / IsFailedPrecondition

Function IsFailedPrecondition

pkg/errors/codes.go:107–107  ·  view source on GitHub ↗

IsFailedPrecondition returns whether the given error is of type FailedPrecondition.

(err error)

Source from the content-addressed store, hash-verified

105
106// IsFailedPrecondition returns whether the given error is of type FailedPrecondition.
107func IsFailedPrecondition(err error) bool { return HasCode(err, uint32(codes.FailedPrecondition)) }
108
109// IsAborted returns whether the given error is of type Aborted.
110func IsAborted(err error) bool { return HasCode(err, uint32(codes.Aborted)) }

Callers 15

GetNwkKeyMethod · 0.92
GetAppKeyMethod · 0.92
TestDownlinkQueueReplaceFunction · 0.92
TestDownlinkQueuePushFunction · 0.92
logRegistryRPCErrorFunction · 0.92
TestCodesFunction · 0.92
TestEmailValidationFunction · 0.92

Calls 1

HasCodeFunction · 0.85

Tested by 15

TestDownlinkQueueReplaceFunction · 0.74
TestDownlinkQueuePushFunction · 0.74
TestCodesFunction · 0.74
TestEmailValidationFunction · 0.74
TestUserCreateFunction · 0.74
TestUsersCRUDFunction · 0.74