github.com/cozy/cozy-stack@v0.0.0-20240603063001-31110fa4cae1/model/office/errors.go (about) 1 package office 2 3 import "errors" 4 5 var ( 6 // ErrNoServer is used when no OnlyOnffice server is configured for the 7 // current context 8 ErrNoServer = errors.New("No OnlyOnffice server is configured") 9 // ErrInvalidFile is used when a file is not an office document 10 ErrInvalidFile = errors.New("Invalid file, not an office document") 11 // ErrInternalServerError is used when something goes wrong (like no 12 // connection to redis) 13 ErrInternalServerError = errors.New("Internal server error") 14 // ErrInvalidKey is used when the key is not found in the store 15 ErrInvalidKey = errors.New("invalid key") 16 )