backend: add: new error messages
This commit is contained in:
@@ -44,6 +44,8 @@ var (
|
|||||||
ValErrParentIDNotSet = errors.New("Parent Membership ID not provided")
|
ValErrParentIDNotSet = errors.New("Parent Membership ID not provided")
|
||||||
ValErrParentIDNotFound = errors.New("Parent Membership ID not found")
|
ValErrParentIDNotFound = errors.New("Parent Membership ID not found")
|
||||||
ErrSubscriptionNotFound = errors.New("Subscription Model not found")
|
ErrSubscriptionNotFound = errors.New("Subscription Model not found")
|
||||||
|
ErrSubscriptionInUse = errors.New("This subscription is in active use by existing members.")
|
||||||
|
ErrInvalidSubscriptionData = errors.New("Provided subscription data is invalid. Immutable fields where changed.")
|
||||||
)
|
)
|
||||||
|
|
||||||
var Responses = struct {
|
var Responses = struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user