yerror

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrForbidden           = Error{/* contains filtered or unexported fields */}
	ErrInternalServerError = Error{/* contains filtered or unexported fields */}
	ErrNotFound            = Error{/* contains filtered or unexported fields */}
	ErrUnauthorised        = Error{/* contains filtered or unexported fields */}
)

Functions

This section is empty.

Types

type Error

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

func (Error) AddExtensions

func (e Error) AddExtensions(extensions ...Extension) Error

func (Error) Code

func (e Error) Code() int

func (Error) CodeText

func (e Error) CodeText() string

func (Error) Error

func (e Error) Error() string

func (Error) Extensions

func (e Error) Extensions() map[string]any

func (Error) Is

func (e Error) Is(target error) bool

func (Error) WithDetails

func (e Error) WithDetails(details string) Error

func (Error) WithMsg

func (e Error) WithMsg(msg string) Error

type Extension

type Extension struct {
	Key   string
	Value any
}

Jump to

Keyboard shortcuts

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