github.com/cozy/cozy-stack@v0.0.0-20240327093429-939e4a21320e/model/app/errors.go (about) 1 package app 2 3 import "errors" 4 5 var ( 6 // ErrInvalidSlugName is used when the given slug name is not valid 7 ErrInvalidSlugName = errors.New("Invalid slug name") 8 // ErrAlreadyExists is used when an application with the specified slug name 9 // is already installed. 10 ErrAlreadyExists = errors.New("Application with same slug already exists") 11 // ErrNotFound is used when no application with specified slug name is 12 // installed. 13 // Used by Cloudery, don't modify it 14 ErrNotFound = errors.New("Application is not installed") 15 // ErrNotSupportedSource is used when the source transport or 16 // protocol is not supported 17 ErrNotSupportedSource = errors.New("Invalid or not supported source scheme") 18 // ErrManifestNotReachable is used when the manifest of the 19 // application is not reachable 20 ErrManifestNotReachable = errors.New("Application manifest is not reachable") 21 // ErrSourceNotReachable is used when the given source for 22 // application is not reachable 23 ErrSourceNotReachable = errors.New("Application source is not reachable") 24 // ErrBadManifest when the manifest is not valid or malformed 25 ErrBadManifest = errors.New("Application manifest is invalid or malformed") 26 // ErrBadState is used when trying to use the application while in a 27 // state that is not appropriate for the given operation. 28 ErrBadState = errors.New("Application is not in valid state to perform this operation") 29 // ErrMissingSource is used when installing an application, but there is no 30 // source URL 31 ErrMissingSource = errors.New("The source URL for the app is missing") 32 // ErrBadChecksum is used when the application checksum does not match the 33 // specified one. 34 ErrBadChecksum = errors.New("Application checksum does not match") 35 // ErrLinkedAppExists is used when an OAuth client is linked to this app 36 ErrLinkedAppExists = errors.New("A linked OAuth client exists for this app") 37 )