errcodes

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDataSourceDoesntExist

func IsDataSourceDoesntExist(err error) bool

IsDataSourceDoesntExist Returns if passed error is a missing key error

func IsErrFileExists

func IsErrFileExists(err error) bool

ErrFileExists Returns if passed error is a missing key error

func IsErrMissingKey

func IsErrMissingKey(err error) bool

IsErrMissingKey Returns if passed error is a missing key error

Types

type ErrDataSourceDoesntExist

type ErrDataSourceDoesntExist struct {
	Name string
}

func (ErrDataSourceDoesntExist) Error

func (e ErrDataSourceDoesntExist) Error() string

type ErrFileExists

type ErrFileExists struct {
	Filename string
}

func (ErrFileExists) Error

func (e ErrFileExists) Error() string

type ErrMissingKey

type ErrMissingKey struct {
	Key string
}

ErrMissingKey When we get missing keys

func (ErrMissingKey) Error

func (e ErrMissingKey) Error() string

Jump to

Keyboard shortcuts

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