errors

package
v0.0.0-...-e173b71 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorTypeUnknown        = ErrorType{"unknown"}
	ErrorTypeAuthorization  = ErrorType{"authorization"}
	ErrorTypeIncorrectInput = ErrorType{"incorrect-input"}
)

Functions

This section is empty.

Types

type ErrorType

type ErrorType struct {
	// contains filtered or unexported fields
}

type SlugError

type SlugError struct {
	// contains filtered or unexported fields
}

func NewAuthorizationError

func NewAuthorizationError(error string, slug string) SlugError

func NewIncorrectInputError

func NewIncorrectInputError(error string, slug string) SlugError

func NewSlugError

func NewSlugError(error string, slug string) SlugError

func (SlugError) Error

func (s SlugError) Error() string

func (SlugError) ErrorType

func (s SlugError) ErrorType() ErrorType

func (SlugError) Slug

func (s SlugError) Slug() string

Jump to

Keyboard shortcuts

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