Initial commit: Open sourcing all of the Maple Open Technologies code.
This commit is contained in:
commit
755d54a99d
2010 changed files with 448675 additions and 0 deletions
35
cloud/maplepress-backend/internal/domain/site/errors.go
Normal file
35
cloud/maplepress-backend/internal/domain/site/errors.go
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
package site
|
||||
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
// ErrNotFound is returned when a site is not found
|
||||
ErrNotFound = errors.New("site not found")
|
||||
|
||||
// ErrSiteNotFound is an alias for ErrNotFound
|
||||
ErrSiteNotFound = ErrNotFound
|
||||
|
||||
// ErrDomainAlreadyExists is returned when trying to create a site with a domain that already exists
|
||||
ErrDomainAlreadyExists = errors.New("domain already exists")
|
||||
|
||||
// ErrInvalidAPIKey is returned when API key authentication fails
|
||||
ErrInvalidAPIKey = errors.New("invalid API key")
|
||||
|
||||
// ErrSiteNotActive is returned when trying to perform operations on an inactive site
|
||||
ErrSiteNotActive = errors.New("site is not active")
|
||||
|
||||
// ErrSiteNotVerified is returned when trying to perform operations on an unverified site
|
||||
ErrSiteNotVerified = errors.New("site is not verified")
|
||||
|
||||
// ErrQuotaExceeded is returned when a quota limit is reached
|
||||
ErrQuotaExceeded = errors.New("quota exceeded")
|
||||
|
||||
// ErrStorageQuotaExceeded is returned when storage quota is exceeded
|
||||
ErrStorageQuotaExceeded = errors.New("storage quota exceeded")
|
||||
|
||||
// ErrSearchQuotaExceeded is returned when search quota is exceeded
|
||||
ErrSearchQuotaExceeded = errors.New("search quota exceeded")
|
||||
|
||||
// ErrIndexingQuotaExceeded is returned when indexing quota is exceeded
|
||||
ErrIndexingQuotaExceeded = errors.New("indexing quota exceeded")
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue