2024-03-25 16:24:48: merge [main:72a62d1996eb71f9a1ab21643bf294148b87ae99];
This commit is contained in:
1 parent
0669c6ec0a
commit
ed8a4eef5d
85 files changed
+7671
-93
No files matched your search
@@ -0,0 +1,29 @@
|
||||
package domain
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
var (
|
||||
ErrNotFound = errors.New("not found")
|
||||
ErrUnauthenticated = errors.New("authentication failure")
|
||||
ErrSudirAuthorization = errors.New("User is authorized only with SUDIR")
|
||||
ErrSudirAuthIsMissed = errors.New("SUDIR authorization is not configured on the server")
|
||||
ErrInvalid = errors.New("entity is invalid")
|
||||
ErrAlreadyExists = errors.New("already exists")
|
||||
ErrTokenExpired = errors.New("token expired")
|
||||
ErrTokenNotFound = errors.New("token not found")
|
||||
ErrTooManyLoginRequests = errors.New("too many login requests")
|
||||
ErrUserIsBlocked = errors.New("user is blocked")
|
||||
ErrNoActionRequired = errors.New("no action required")
|
||||
)
|
||||
|
||||
type UnknownAuditEventError struct {
|
||||
Event string
|
||||
}
|
||||
|
||||
func (e UnknownAuditEventError) Error() string {
|
||||
return fmt.Sprintf("unknown audit event: %s", e.Event)
|
||||
}
|
||||
Reference in new issue
Block a user