MCPcopy Create free account
hub / github.com/cli/cli / SubscriptionNotFoundError

Function SubscriptionNotFoundError

pkg/cmd/event/shared/subscription.go:38–40  ·  view source on GitHub ↗

SubscriptionNotFoundError reports a subscription the API did not find. The API does not tell a missing subscription apart from an expired, deleted, or another account's one.

(id string)

Source from the content-addressed store, hash-verified

36// SubscriptionNotFoundError reports a subscription the API did not find. The API does not tell a missing
37// subscription apart from an expired, deleted, or another account's one.
38func SubscriptionNotFoundError(id string) error {
39 return fmt.Errorf("subscription %s was not found; it may have expired or been deleted, or you cannot access it", id)
40}
41
42// SubscriptionLimitError adds the commands that free a subscription slot to err when it reports the subscription
43// limit, and returns other errors unchanged.

Callers 2

deleteRunFunction · 0.92
viewRunFunction · 0.92

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected