Files
chain33-dtalk/service/auth/model/error.go
2022-03-17 15:59:24 +08:00

22 lines
1.2 KiB
Go

package model
import "github.com/pkg/errors"
var (
ErrAuthFiled = errors.New("auth uid failed")
ErrFindUid = errors.New("Failed to find the uid")
ErrWrongDataFormat = errors.New("The data format is wrong")
ErrFieldIsNonexistentInCompareValues = errors.New("CompareValues: field does not exist")
//ErrFieldIsNonexistentInGenerateBodyOfRequest = errors.New("GenerateBodyOfRequest: field does not exist")
ErrParseConfig = errors.New("Failed to parse the configuration")
ErrUnmarshalBodyOfResponse = errors.New("Failed to unmarshal the body of the response")
ErrInvalidRequest = errors.New("The request is invalid")
ErrCheckDigest = errors.New("Failed to check the digest")
ErrQueryKey = errors.New("Failed to query the key")
ErrKeyIsNonexistent = errors.New("The key does not exist")
ErrLoadConfig = errors.New("Failed to query the configuration")
ErrConfigurationIsNonexistent = errors.New("The configuration does not exist")
ErrHTTPCommunication = errors.New("A HTTP communication error has occurred")
ErrInvalidToken = errors.New("The token is Invalid")
)