Initial cloud-services repo - gateway service + pkg modules
This commit is contained in:
11
pkg/cachev2/errors.go
Normal file
11
pkg/cachev2/errors.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package cachev2
|
||||
|
||||
import "github.com/pkg/errors"
|
||||
|
||||
func ErrInvalidCarToDriverAssociation(vin string, driverID string) error {
|
||||
return errors.Errorf("no relationship found between vin %s and driver %s", vin, driverID)
|
||||
}
|
||||
|
||||
func ErrCarHasNoDrivers(vin string) error {
|
||||
return errors.Errorf("car %s has no drivers", vin)
|
||||
}
|
||||
Reference in New Issue
Block a user