Files
hammond/server/models/errors.go
Akhil Gupta d25c30a7b2 first commit
2021-05-29 15:20:50 +05:30

12 lines
209 B
Go

package models
import "fmt"
type VehicleAlreadyExistsError struct {
Registration string
}
func (e *VehicleAlreadyExistsError) Error() string {
return fmt.Sprintf("Vehicle with this url already exists")
}