xerr

package
v0.0.0-...-0149ed5 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InternalError

type InternalError string
var (
	AuthCodeExpired                     InternalError = "auth code expired"
	AuthCodeNotFound                    InternalError = "auth code not found"
	AuthCodeUsed                        InternalError = "auth code used"
	CacheFieldDuplicated                InternalError = "cache field duplicated"
	CacheKeyNotFound                    InternalError = "cache key not found"
	ClientIDNotMatched                  InternalError = "client id not matched"
	ConsentNotFound                     InternalError = "consent not found"
	CredentialNotFoundInHeader          InternalError = "credential not found in header"
	FailedToInitialize                  InternalError = "failed to initialize"
	FailedToReadAuthorizationParameters InternalError = "failed to read authorization parameters"
	FailedToReadResponseBody            InternalError = "failed to read response body"
	FailedToReadSession                 InternalError = "failed to read session"
	FailedToSetTimeoutOnCacheKey        InternalError = "failed to set timeout on cache key"
	FailedToValidate                    InternalError = "failed to validate"
	FailedToWriteCache                  InternalError = "failed to write cache"
	InvalidPath                         InternalError = "invalid path"
	InvalidRedirectURI                  InternalError = "invalid redirect uri"
	InvalidResponseType                 InternalError = "invalid response type"
	InvalidToken                        InternalError = "invalid token"
	PasswordNotMatched                  InternalError = "password not matched"
	RecordNotFound                      InternalError = "record not found"
	RedirectURINotFound                 InternalError = "redirect uri not found"
	RefreshTokenNotFound                InternalError = "refresh token not found"
	RefreshTokenNotMatched              InternalError = "refresh token not matched"
	TokenNotFoundInHeader               InternalError = "token not found in header"
	UnauthorizedRequest                 InternalError = "unauthorized request"
	UnexpectedErrorOccurred             InternalError = "unexpected error occurred"
	UnknownSecurityScheme               InternalError = "unknown security scheme"
	UnsupportedClaim                    InternalError = "unsupported claim"
	UserIDNotFoundInContext             InternalError = "user id not found in context"
	UserNotFound                        InternalError = "user not found"
)

func (InternalError) Error

func (ie InternalError) Error() string

func (InternalError) Wrap

func (ie InternalError) Wrap(e error) error

type OIDCError

type OIDCError string
var (
	AccessDenied       OIDCError = "access_denied"
	InvalidClient      OIDCError = "invalid_client"
	InvalidGrant       OIDCError = "invalid_grant"
	InvalidRequestOIDC OIDCError = "invalid_request"
	ServerError        OIDCError = "server_error"
)

func (OIDCError) Error

func (oe OIDCError) Error() string

type PublicError

type PublicError string
var (
	InvalidRequest              PublicError = "invalid request"
	InvalidUsernameOrPassword   PublicError = "invalid username or password"
	OK                          PublicError = "ok"
	ServiceTemporaryUnavailable PublicError = "service temporary unavailable"
	UnexpectedErrorOccurred2    PublicError = "unexpected error occurred"
)

func (PublicError) Error

func (pe PublicError) Error() string

type TestError

type TestError string
var (
	TypeAssertionFailed TestError = "type assertion failed"
)

func (TestError) Error

func (te TestError) Error() string

Jump to

Keyboard shortcuts

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