errdef

package
v0.0.0-...-707b7f7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Errors_name = map[int32]string{
		0:      "UNSPECIFIED",
		-1:     "Unknown",
		100000: "Success",
		100001: "InvalidArgument",
		101000: "IdentityAuthenticationFailed",
		103000: "TokenInvalid",
		103001: "TokenExpired",
		103002: "TokenRevoked",
		104000: "AuthInvalidClient",
		104001: "AuthInvalidRedirectURI",
		104002: "AuthInvalidScope",
		200000: "Internal",
		201000: "RecordNotFound",
		201001: "DuplicatedKey",
	}
	Errors_value = map[string]int32{
		"UNSPECIFIED":                  0,
		"Unknown":                      -1,
		"Success":                      100000,
		"InvalidArgument":              100001,
		"IdentityAuthenticationFailed": 101000,
		"TokenInvalid":                 103000,
		"TokenExpired":                 103001,
		"TokenRevoked":                 103002,
		"AuthInvalidClient":            104000,
		"AuthInvalidRedirectURI":       104001,
		"AuthInvalidScope":             104002,
		"Internal":                     200000,
		"RecordNotFound":               201000,
		"DuplicatedKey":                201001,
	}
)

Enum value maps for Errors.

View Source
var File_errdef_errdef_proto protoreflect.FileDescriptor

Functions

func AuthInvalidClient

func AuthInvalidClient() errors.AdvancedError

func AuthInvalidRedirectURI

func AuthInvalidRedirectURI() errors.AdvancedError

func AuthInvalidScope

func AuthInvalidScope() errors.AdvancedError

func DuplicatedKey

func DuplicatedKey() errors.AdvancedError

func IdentityAuthenticationFailed

func IdentityAuthenticationFailed() errors.AdvancedError

func Internal

func Internal() errors.AdvancedError

func InvalidArgument

func InvalidArgument() errors.AdvancedError

func IsAuthInvalidClient

func IsAuthInvalidClient(err error) bool

func IsAuthInvalidRedirectURI

func IsAuthInvalidRedirectURI(err error) bool

func IsAuthInvalidScope

func IsAuthInvalidScope(err error) bool

func IsDuplicatedKey

func IsDuplicatedKey(err error) bool

func IsIdentityAuthenticationFailed

func IsIdentityAuthenticationFailed(err error) bool

func IsInternal

func IsInternal(err error) bool

func IsInvalidArgument

func IsInvalidArgument(err error) bool

func IsRecordNotFound

func IsRecordNotFound(err error) bool

func IsSuccess

func IsSuccess(err error) bool

func IsTokenExpired

func IsTokenExpired(err error) bool

func IsTokenInvalid

func IsTokenInvalid(err error) bool

func IsTokenRevoked

func IsTokenRevoked(err error) bool

func IsUnknown

func IsUnknown(err error) bool

func RecordNotFound

func RecordNotFound() errors.AdvancedError

func Success

func Success() errors.AdvancedError

func TokenExpired

func TokenExpired() errors.AdvancedError

func TokenInvalid

func TokenInvalid() errors.AdvancedError

func TokenRevoked

func TokenRevoked() errors.AdvancedError

func Unknown

func Unknown() errors.AdvancedError

Types

type Errors

type Errors int32
const (
	Errors_UNSPECIFIED Errors = 0
	Errors_Unknown     Errors = -1
	// biz - type 1
	// common errors
	Errors_Success         Errors = 100000
	Errors_InvalidArgument Errors = 100001
	// identity errors (domain: 01)
	Errors_IdentityAuthenticationFailed Errors = 101000
	// token errors (domain: 03)
	Errors_TokenInvalid Errors = 103000
	Errors_TokenExpired Errors = 103001
	Errors_TokenRevoked Errors = 103002
	// auth errors (domain: 04)
	Errors_AuthInvalidClient      Errors = 104000
	Errors_AuthInvalidRedirectURI Errors = 104001
	Errors_AuthInvalidScope       Errors = 104002
	// sys - type 2
	// common
	Errors_Internal Errors = 200000
	// db errors (module: 01)
	Errors_RecordNotFound Errors = 201000
	Errors_DuplicatedKey  Errors = 201001
)

func (Errors) Descriptor

func (Errors) Descriptor() protoreflect.EnumDescriptor

func (Errors) Enum

func (x Errors) Enum() *Errors

func (Errors) EnumDescriptor deprecated

func (Errors) EnumDescriptor() ([]byte, []int)

Deprecated: Use Errors.Descriptor instead.

func (Errors) Number

func (x Errors) Number() protoreflect.EnumNumber

func (Errors) String

func (x Errors) String() string

func (Errors) Type

func (Errors) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL