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

Function IsUnknown

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

IsUnknown returns whether the given error is of type Unknown.

(err error)

Source from the content-addressed store, hash-verified

82
83// IsUnknown returns whether the given error is of type Unknown.
84func IsUnknown(err error) bool { return HasCode(err, uint32(codes.Unknown)) }
85
86// IsInvalidArgument returns whether the given error is of type InvalidArgument.
87func IsInvalidArgument(err error) bool { return HasCode(err, uint32(codes.InvalidArgument)) }

Callers 3

TestGetNwkSKeysFunction · 0.92
TestGetHomeNetIDFunction · 0.92
TestCodesFunction · 0.92

Calls 1

HasCodeFunction · 0.85

Tested by 3

TestGetNwkSKeysFunction · 0.74
TestGetHomeNetIDFunction · 0.74
TestCodesFunction · 0.74