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

Function IsInvalidArgument

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

IsInvalidArgument returns whether the given error is of type InvalidArgument.

(err error)

Source from the content-addressed store, hash-verified

85
86// IsInvalidArgument returns whether the given error is of type InvalidArgument.
87func IsInvalidArgument(err error) bool { return HasCode(err, uint32(codes.InvalidArgument)) }
88
89// IsDeadlineExceeded returns whether the givenerror is context.DeadlineExceeded or of type DeadlineExceeded.
90func IsDeadlineExceeded(err error) bool {

Calls 1

HasCodeFunction · 0.85