IsErrUserAlreadyExist returns true if the underlying error has the type ErrUserAlreadyExist.
(err error)
| 256 | // IsErrUserAlreadyExist returns true if the underlying error has the type |
| 257 | // ErrUserAlreadyExist. |
| 258 | func IsErrUserAlreadyExist(err error) bool { |
| 259 | return errors.As(err, &ErrUserAlreadyExist{}) |
| 260 | } |
| 261 | |
| 262 | func (err ErrUserAlreadyExist) Error() string { |
| 263 | return fmt.Sprintf("user already exists: %v", err.args) |
no outgoing calls
no test coverage detected