slugerrors

package
v0.0.0-...-e6f2c53 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorTypeUnknown       = ErrorType{"unknown"}
	ErrorTypeAuthorization = ErrorType{"authorization"}
	ErrorTypeBadRequest    = ErrorType{"bad-request"}
	ErrorTypeNotFound      = ErrorType{"not-found"}
)

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(errMsg string, slug string) SlugError

func NewBadRequestError

func NewBadRequestError(errMsg string, slug string) SlugError

func NewNotFoundError

func NewNotFoundError(errMsg string, slug string) SlugError

func NewSlugError

func NewSlugError(errMsg 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