Documentation ¶
Index ¶
- Variables
- func ErrorForbidden(format string, args ...interface{}) *errors.Error
- func ErrorIllegalParameter(format string, args ...interface{}) *errors.Error
- func ErrorInternal(format string, args ...interface{}) *errors.Error
- func ErrorNotFound(format string, args ...interface{}) *errors.Error
- func ErrorTooManyRequests(format string, args ...interface{}) *errors.Error
- func ErrorUnauthorized(format string, args ...interface{}) *errors.Error
- func IsForbidden(err error) bool
- func IsIllegalParameter(err error) bool
- func IsInternal(err error) bool
- func IsNotFound(err error) bool
- func IsTooManyRequests(err error) bool
- func IsUnauthorized(err error) bool
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorReason_name = map[int32]string{ 0: "INTERNAL", 1: "TOO_MANY_REQUESTS", 2: "ILLEGAL_PARAMETER", 3: "NOT_FOUND", 4: "UNAUTHORIZED", 5: "FORBIDDEN", } ErrorReason_value = map[string]int32{ "INTERNAL": 0, "TOO_MANY_REQUESTS": 1, "ILLEGAL_PARAMETER": 2, "NOT_FOUND": 3, "UNAUTHORIZED": 4, "FORBIDDEN": 5, } )
Enum value maps for ErrorReason.
View Source
var File_reason_proto_reason_proto protoreflect.FileDescriptor
Functions ¶
func ErrorForbidden ¶
func ErrorIllegalParameter ¶
func ErrorInternal ¶ added in v1.1.0
func ErrorNotFound ¶
func ErrorTooManyRequests ¶
func ErrorUnauthorized ¶
func IsForbidden ¶
func IsIllegalParameter ¶
func IsInternal ¶ added in v1.1.0
func IsNotFound ¶
func IsTooManyRequests ¶
func IsUnauthorized ¶
Types ¶
type ErrorReason ¶
type ErrorReason int32
const ( ErrorReason_INTERNAL ErrorReason = 0 ErrorReason_TOO_MANY_REQUESTS ErrorReason = 1 ErrorReason_ILLEGAL_PARAMETER ErrorReason = 2 ErrorReason_NOT_FOUND ErrorReason = 3 ErrorReason_UNAUTHORIZED ErrorReason = 4 ErrorReason_FORBIDDEN ErrorReason = 5 )
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.