error

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadRequestHttpError

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

func NewBadRequestHttpError

func NewBadRequestHttpError() *BadRequestHttpError

func (*BadRequestHttpError) Message

func (e *BadRequestHttpError) Message() string

func (*BadRequestHttpError) Status

func (e *BadRequestHttpError) Status() int

type HttpError

type HttpError interface {
	Status() int
	Message() string
}

type InternalServerHttpError

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

func NewInternalServerHttpError

func NewInternalServerHttpError() *InternalServerHttpError

func (*InternalServerHttpError) Message

func (e *InternalServerHttpError) Message() string

func (*InternalServerHttpError) Status

func (e *InternalServerHttpError) Status() int

type NotFoundHttpError

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

func NewNotFoundHttpError

func NewNotFoundHttpError() *NotFoundHttpError

func (*NotFoundHttpError) Message

func (e *NotFoundHttpError) Message() string

func (*NotFoundHttpError) Status

func (e *NotFoundHttpError) Status() int

type UnauthorizedHttpError

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

func NewUnauthorizedHttpError

func NewUnauthorizedHttpError() *UnauthorizedHttpError

func (*UnauthorizedHttpError) Message

func (e *UnauthorizedHttpError) Message() string

func (*UnauthorizedHttpError) Status

func (e *UnauthorizedHttpError) Status() int

Jump to

Keyboard shortcuts

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