error

package
v0.0.0-...-b8a4949 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ClientErr   = NewClientError("")
	ServerErr   = NewServerError(errors.New(""))
	NotFoundErr = NewNotFoundError("")
)

Functions

func NewClientError

func NewClientError(msg string) error

func NewNotFoundError

func NewNotFoundError(key string) error

func NewServerError

func NewServerError(err error) error

Types

type ClientError

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

func (*ClientError) Error

func (c *ClientError) Error() string

func (*ClientError) Is

func (c *ClientError) Is(err error) bool

type NotFoundError

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

func (*NotFoundError) Error

func (n *NotFoundError) Error() string

func (*NotFoundError) Is

func (n *NotFoundError) Is(err error) bool

type ServerError

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

func (*ServerError) Error

func (s *ServerError) Error() string

func (*ServerError) Is

func (s *ServerError) Is(err error) bool

Jump to

Keyboard shortcuts

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