errors

package
v2.13.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleError

func HandleError(ctx context.Context, response *restful.Response, err error, title string)

func NewBadRequestError

func NewBadRequestError(msg string) error

func NewNotFoundError

func NewNotFoundError(msg string) error

Types

type BadRequest

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

func (*BadRequest) Error

func (e *BadRequest) Error() string

func (*BadRequest) Is

func (e *BadRequest) Is(err error) bool

type Conflict

type Conflict struct{}

func (*Conflict) Error

func (e *Conflict) Error() string

type MethodNotAllowed

type MethodNotAllowed struct{}

func (*MethodNotAllowed) Error

func (e *MethodNotAllowed) Error() string

type NotFound

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

func (*NotFound) Error

func (e *NotFound) Error() string

func (*NotFound) Is

func (e *NotFound) Is(err error) bool

type ServiceUnavailable

type ServiceUnavailable struct{}

func (*ServiceUnavailable) Error

func (e *ServiceUnavailable) Error() string

type Unauthenticated

type Unauthenticated struct{}

func (*Unauthenticated) Error

func (e *Unauthenticated) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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