IsErrUserHasOrgs returns true if the underlying error has the type ErrUserHasOrgs.
(err error)
| 380 | // IsErrUserHasOrgs returns true if the underlying error has the type |
| 381 | // ErrUserHasOrgs. |
| 382 | func IsErrUserHasOrgs(err error) bool { |
| 383 | return errors.As(err, &ErrUserHasOrgs{}) |
| 384 | } |
| 385 | |
| 386 | func (err ErrUserHasOrgs) Error() string { |
| 387 | return fmt.Sprintf("user still has organization membership: %v", err.args) |
no outgoing calls
no test coverage detected