github.com/cozy/cozy-stack@v0.0.0-20240603063001-31110fa4cae1/model/notification/center/errors.go (about)

     1  package center
     2  
     3  import "errors"
     4  
     5  var (
     6  	// ErrBadNotification is used when the notification request is not valid.
     7  	ErrBadNotification = errors.New("Notification is not valid")
     8  	// ErrUnauthorized is used when the notification creator is not authorized to do so.
     9  	ErrUnauthorized = errors.New("Not authorized to send notification")
    10  	// ErrNoCategory is used when no category is declared for this application
    11  	ErrNoCategory = errors.New("No category for this app")
    12  	// ErrCategoryNotFound is used when sending a notification from an unknown
    13  	// category.
    14  	ErrCategoryNotFound = errors.New("Notification category does not exist")
    15  )