MCPcopy Index your code
hub / github.com/google/go-github / Is

Method Is

github/github.go:1599–1608  ·  view source on GitHub ↗

Is returns whether the provided error equals this error.

(target error)

Source from the content-addressed store, hash-verified

1597
1598// Is returns whether the provided error equals this error.
1599func (r *AbuseRateLimitError) Is(target error) bool {
1600 var v *AbuseRateLimitError
1601 if !errors.As(target, &v) {
1602 return false
1603 }
1604
1605 return r.Message == v.Message &&
1606 r.RetryAfter == v.RetryAfter &&
1607 compareHTTPResponse(r.Response, v.Response)
1608}
1609
1610// RedirectionError represents a response that returned a redirect status code:
1611//

Callers

nothing calls this directly

Calls 1

compareHTTPResponseFunction · 0.85

Tested by

no test coverage detected