apperror

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoEntity = errors.New("no entity was found")

Functions

This section is empty.

Types

type ClientError

type ClientError struct {
	Code       int
	Message    string
	ErrorToLog error
}

func NewClientError

func NewClientError(errorType ClientErrorType, err error) ClientError

func (ClientError) Error

func (err ClientError) Error() string

func (ClientError) Unwrap

func (err ClientError) Unwrap() error

type ClientErrorType

type ClientErrorType int
const (
	Common ClientErrorType = iota
	WrongAuthorization
	WrongRequest
	WrongAuthToken
	NoClient
	WrongOneTimeCode
)

Jump to

Keyboard shortcuts

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