customerrors

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomError

type CustomError struct {
	ErrorType    ErrorType
	ErrorMessage string
}

func New

func New(et ErrorType, e error) *CustomError

func To

func To(e error) *CustomError

func (*CustomError) Error

func (ce *CustomError) Error() string

type ErrorType

type ErrorType string
const (
	ErrorTypeUnknown    ErrorType = "Unknown"
	ErrorTypeAuth       ErrorType = "Auth"
	ErrorTypeTokenCache ErrorType = "TokenCache"
)

Jump to

Keyboard shortcuts

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