2022-05-11 22:47:31 +00:00
|
|
|
package errors
|
|
|
|
|
2023-02-24 07:19:07 +00:00
|
|
|
import (
|
|
|
|
"github.com/rotisserie/eris"
|
|
|
|
)
|
2022-05-11 22:47:31 +00:00
|
|
|
|
|
|
|
// All error messages used by the service package to report
|
|
|
|
// problems back to calling clients
|
|
|
|
var (
|
2023-02-24 07:19:07 +00:00
|
|
|
ErrDatabaseUnavailable = eris.New("database-unavailable")
|
|
|
|
ErrDuplicateEmailUser = eris.New("email-already-exists")
|
|
|
|
ErrInvalidLogin = eris.New("invalid-login-credentials")
|
|
|
|
ErrUserDisabled = eris.New("user-disabled")
|
|
|
|
ErrSystemUserReadonly = eris.New("cannot-save-system-users")
|
|
|
|
ErrValidationFailed = eris.New("request-failed-validation")
|
|
|
|
ErrCurrentPasswordInvalid = eris.New("current-password-invalid")
|
|
|
|
ErrCABundleDoesNotExist = eris.New("ca-bundle-does-not-exist")
|
2022-05-11 22:47:31 +00:00
|
|
|
)
|