first commit
This commit is contained in:
11
server/models/errors.go
Normal file
11
server/models/errors.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package models
|
||||
|
||||
import "fmt"
|
||||
|
||||
type VehicleAlreadyExistsError struct {
|
||||
Registration string
|
||||
}
|
||||
|
||||
func (e *VehicleAlreadyExistsError) Error() string {
|
||||
return fmt.Sprintf("Vehicle with this url already exists")
|
||||
}
|
||||
Reference in New Issue
Block a user