framework

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBadRequestError

func NewBadRequestError(msg string, err error) error

NewBadRequestError returns new BadRequestError

func NewInternalServerError

func NewInternalServerError(msg string, err error) error

NewInternalServerError returns new InternalServerError

func NewNotFoundError

func NewNotFoundError(msg string, err error) error

NewNotFoundError returns new NotFoundError

func WrapError

func WrapError(msg string, err error) error

WrapError wraps and returns error

Types

type BadRequestError

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

BadRequestError is an error that http handler returns bad-request response to client on receive.

func (*BadRequestError) Error

func (e *BadRequestError) Error() string

func (*BadRequestError) Unwrap

func (e *BadRequestError) Unwrap() error

type InternalServerError

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

InternalServerError is an error that http handler returns internal-server-error response to client on receive.

func (*InternalServerError) Error

func (e *InternalServerError) Error() string

func (*InternalServerError) Unwrap

func (e *InternalServerError) Unwrap() error

type NotFoundError

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

NotFoundError is an error that http handler returns not-found response to client on receive.

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

func (*NotFoundError) Unwrap

func (e *NotFoundError) Unwrap() error

Jump to

Keyboard shortcuts

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