Documentation ¶
Index ¶
- func Errorf(errorType Type, format string, a ...interface{}) error
- func NewAccountNotFoundError(accountKey string) error
- func NewGetAccountFromStoreError(err error) error
- func NewGetUserFromStoreError() error
- func NewInvalidKeyIDError() error
- func NewPeerLoginExpiredError() error
- func NewPeerNotFoundError(peerKey string) error
- func NewPeerNotRegisteredError() error
- func NewSetupKeyNotFoundError(err error) error
- func NewStoreContextCanceledError(duration time.Duration) error
- func NewUnauthorizedToViewSetupKeysError() error
- func NewUserNotFoundError(userKey string) error
- type Error
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccountNotFoundError ¶ added in v0.28.0
NewAccountNotFoundError creates a new Error with NotFound type for a missing account
func NewGetAccountFromStoreError ¶ added in v0.30.1
func NewGetUserFromStoreError ¶ added in v0.29.3
func NewGetUserFromStoreError() error
NewGetUserFromStoreError creates a new Error with Internal type for an issue getting user from store
func NewInvalidKeyIDError ¶ added in v0.31.0
func NewInvalidKeyIDError() error
NewInvalidKeyIDError creates a new Error with InvalidArgument type for an issue getting a setup key
func NewPeerLoginExpiredError ¶ added in v0.28.7
func NewPeerLoginExpiredError() error
NewPeerLoginExpiredError creates a new Error with PermissionDenied type for an expired peer
func NewPeerNotFoundError ¶ added in v0.28.0
NewPeerNotFoundError creates a new Error with NotFound type for a missing peer
func NewPeerNotRegisteredError ¶ added in v0.28.0
func NewPeerNotRegisteredError() error
NewPeerNotRegisteredError creates a new Error with NotFound type for a missing peer
func NewSetupKeyNotFoundError ¶ added in v0.29.3
NewSetupKeyNotFoundError creates a new Error with NotFound type for a missing setup key
func NewStoreContextCanceledError ¶ added in v0.31.0
NewStoreContextCanceledError creates a new Error with Internal type for a canceled store context
func NewUnauthorizedToViewSetupKeysError ¶ added in v0.31.0
func NewUnauthorizedToViewSetupKeysError() error
NewUnauthorizedToViewSetupKeysError creates a new Error with Unauthorized type for an issue getting a setup key
func NewUserNotFoundError ¶ added in v0.28.0
NewUserNotFoundError creates a new Error with NotFound type for a missing user
Types ¶
type Error ¶
Error is an internal error
type Type ¶
type Type int32
Type is a type of the Error
const ( // UserAlreadyExists indicates that user already exists UserAlreadyExists Type = 1 // PreconditionFailed indicates that some pre-condition for the operation hasn't been fulfilled PreconditionFailed Type = 2 // PermissionDenied indicates that user has no permissions to view data PermissionDenied Type = 3 // NotFound indicates that the object wasn't found in the system (or under a given Account) NotFound Type = 4 // Internal indicates some generic internal error Internal Type = 5 // InvalidArgument indicates some generic invalid argument error InvalidArgument Type = 6 // AlreadyExists indicates a generic error when an object already exists in the system AlreadyExists Type = 7 Unauthorized Type = 8 // BadRequest indicates that user is not authorized BadRequest Type = 9 // Unauthenticated indicates that user is not authenticated due to absence of valid credentials Unauthenticated Type = 10 )