IsErrEmailAlreadyUsed returns true if the underlying error has the type ErrEmailAlreadyUsed.
(err error)
| 270 | // IsErrEmailAlreadyUsed returns true if the underlying error has the type |
| 271 | // ErrEmailAlreadyUsed. |
| 272 | func IsErrEmailAlreadyUsed(err error) bool { |
| 273 | return errors.As(err, &ErrEmailAlreadyUsed{}) |
| 274 | } |
| 275 | |
| 276 | func (err ErrEmailAlreadyUsed) Email() string { |
| 277 | email, ok := err.args["email"].(string) |
no outgoing calls
no test coverage detected