errors

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

package errors provide errors

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomError

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

CustomError is custom error

func NewCustomError

func NewCustomError(msg string) CustomError

NewCustomError create CustomError

func (CustomError) Error

func (err CustomError) Error() string

Error return string error

func (CustomError) Name

func (err CustomError) Name() string

Name return "CustomError"

type ErrNilBucket

type ErrNilBucket struct{}

func NewErrNilBucket

func NewErrNilBucket() ErrNilBucket

NewErrNilBucket create ErrNilBucket

func (ErrNilBucket) Error

func (err ErrNilBucket) Error() string

Error return string error

func (ErrNilBucket) Name

func (err ErrNilBucket) Name() string

Name return "ErrNilBucket"

type ErrOutOfRange

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

ErrOutOfRange is error about out of range

func NewErrOutOfRange

func NewErrOutOfRange(index uint) ErrOutOfRange

NewErrOutOfRange create ErrOutOfRange

func (ErrOutOfRange) Error

func (err ErrOutOfRange) Error() string

Error return string error

func (ErrOutOfRange) Name

func (err ErrOutOfRange) Name() string

Name return "ErrIndexOutOfRange"

type ErrValueDelete

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

ErrValueDelete is error about trying to use deleting value

func NewErrValueDelete

func NewErrValueDelete(key any) ErrValueDelete

NewErrValueDelete create ErrValueDelete

func (ErrValueDelete) Error

func (err ErrValueDelete) Error() string

Error return string error

func (ErrValueDelete) Name

func (err ErrValueDelete) Name() string

Name return "ErrValueDelete"

type ErrValueNotAvaiable

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

ErrValueNotAvaiable is error about trying to use not avaiable value

func NewErrValueNotAvaiable

func NewErrValueNotAvaiable(key any) ErrValueNotAvaiable

NewErrValueNotAvaiable create ErrValueNotAvaiable

func (ErrValueNotAvaiable) Error

func (err ErrValueNotAvaiable) Error() string

Error return string error

func (ErrValueNotAvaiable) Name

func (err ErrValueNotAvaiable) Name() string

Name return "ErrValueNotAvaiable"

type Error

type Error interface {
	Error() string
	Name() string
}

Error is interface error

func NewErrorf

func NewErrorf(format string, values ...any) Error

NewErrorf create CustomError

func ToError added in v0.11.0

func ToError(err error) Error

Jump to

Keyboard shortcuts

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