-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvars.go
More file actions
24 lines (20 loc) · 681 Bytes
/
vars.go
File metadata and controls
24 lines (20 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package sdk
import "errors"
const (
Bearer = "bearer"
CreateDirectoryFailed = "Could not create user directory"
ExpiredToken = "Token is expired"
InvalidAuthHeader = "Invalid authorization header format"
InvalidToken = "Token is invalid"
UnsupportedDocument = "Unsupported document type"
)
var (
ErrCreateDirectory = newError(CreateDirectoryFailed)
ErrExpiredToken = newError(ExpiredToken)
ErrInvalidAuthHeader = newError(InvalidAuthHeader)
ErrInvalidToken = newError(InvalidToken)
ErrUnsupportedDocument = newError(UnsupportedDocument)
)
func newError(message string) error {
return errors.New(message)
}