(msg string)
| 12 | } |
| 13 | |
| 14 | func BadRequestException(msg string) error { |
| 15 | return fiber.NewError(fiber.StatusBadRequest, msg) |
| 16 | } |
| 17 | |
| 18 | func ConflictException(resourceName string, fieldName string, fieldValue string) error { |
| 19 | msg := fmt.Sprintf("%s with %s : %s already exists", resourceName, fieldName, fieldValue) |
nothing calls this directly
no outgoing calls
no test coverage detected