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

Function IsInternal

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

IsInternal returns whether the given error is of type Internal.

(err error)

Source from the content-addressed store, hash-verified

114
115// IsInternal returns whether the given error is of type Internal.
116func IsInternal(err error) bool { return HasCode(err, uint32(codes.Internal)) }
117
118// IsUnavailable returns whether the given error is of type Unavailable.
119func IsUnavailable(err error) bool { return HasCode(err, uint32(codes.Unavailable)) }

Callers 4

TestTTJSFunction · 0.92
UpdateGatewayMethod · 0.92
TestCodesFunction · 0.92
TestTTSCSVConverterFunction · 0.92

Calls 1

HasCodeFunction · 0.85

Tested by 3

TestTTJSFunction · 0.74
TestCodesFunction · 0.74
TestTTSCSVConverterFunction · 0.74