httperror

package
v0.38.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Is

func Is(err error) bool

func New

func New(ctx context.Context, message string, status int) error

func Wrap

func Wrap(ctx context.Context, message string, status int, err error) error

Types

type Error

type Error interface {
	Ctx() context.Context
	IsHttpError() bool
	Status() int
}

type Impl

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

func (*Impl) Ctx

func (e *Impl) Ctx() context.Context

func (*Impl) Error

func (e *Impl) Error() string

func (*Impl) IsHttpError

func (e *Impl) IsHttpError() bool

func (*Impl) Status

func (e *Impl) Status() int

Jump to

Keyboard shortcuts

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