- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for isErrCode (0.21 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/errors.go
func IsNotFound(err error) bool { return isErrCode(err, ErrCodeKeyNotFound) } // IsExist returns true if and only if err is "key" already exists error. func IsExist(err error) bool { return isErrCode(err, ErrCodeKeyExists) } // IsUnreachable returns true if and only if err indicates the server could not be reached. func IsUnreachable(err error) bool { return isErrCode(err, ErrCodeUnreachable) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 08 15:39:10 UTC 2023 - 5.9K bytes - Viewed (0) -
pkg/volume/metrics_errors.go
} func (e *MetricsError) Error() string { return e.Msg } // IsNotSupported returns true if and only if err is "key" not found error. func IsNotSupported(err error) bool { return isErrCode(err, ErrCodeNotSupported) } func isErrCode(err error, code int) bool { if err == nil { return false } if e, ok := err.(*MetricsError); ok { return e.Code == code } return false
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 20 14:37:12 UTC 2021 - 2.5K bytes - Viewed (0)