| 39 | } |
| 40 | |
| 41 | type errAlreadyExists struct { |
| 42 | entityName string |
| 43 | conflictingParam string |
| 44 | } |
| 45 | |
| 46 | func (e errAlreadyExists) Error() string { |
| 47 | return fmt.Sprintf("a %s with that %s already exists", e.entityName, e.conflictingParam) |
nothing calls this directly
no outgoing calls
no test coverage detected