-
Notifications
You must be signed in to change notification settings - Fork 3
/
errors.go
21 lines (19 loc) · 1.2 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package corbel
import "errors"
var (
errMissingClientParams = errors.New("Client: Missing parameters for the Client. client ID or Secret cannot be empty.")
errInvalidEnvironment = errors.New("Client: Environment is not valid.")
errInvalidJWTSigningMethod = errors.New("Client: Invalid JWT Signing Method.")
errIdentifierEmpty = errors.New("Client: Identifier can't be empty.")
errUserNotFound = errors.New("Client: User not found.")
errInvalidTokenExpirationTime = errors.New("Client: Invalid TokenExpirationTime. Allowed range: 1-3600 seconds.")
errHTTPNotAuthorized = errors.New("HTTP: 401 Not authorized")
errHTTPConflict = errors.New("HTTP: 409 Conflict")
errHTTPInvalidEntity = errors.New("HTTP: 422 Invalid Entity")
errJWTEncodingError = errors.New("JWT: Encoding Error")
errResponseError = errors.New("HTTP: Response error")
errURLParse = errors.New("HTTP: URL Parse Error")
errJSONMarshalError = errors.New("Encoding: JSON Marshal error")
errJSONUnmarshalError = errors.New("Encoding: JSON Unmarshal error")
errInvalidLogLevel = errors.New("Invalid log level")
)