errors

package
v0.0.0-...-e8b1e36 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CodeDoesNotExist                  = "DOES_NOT_EXIST"
	CodeReadError                     = "READ_ERROR"
	CodeWriteError                    = "WRITE_ERROR"
	CodeRepositoryConfigurationError  = "REPOSITORY_CONFIGURATION_ERROR"
	CodeIncompatibleRepositoryVersion = "INCOMPATIBLE_REPOSITORY_VERSION"
	CodeCorruptedRepositorySpec       = "CORRUPTED_REPOSITORY_SPEC"
	CodeConfigNotFound                = "CONFIG_NOT_FOUND"
)

Variables

This section is empty.

Functions

func Code

func Code(err error) string

func ConfigNotFound

func ConfigNotFound(msg string) error

func CorruptedRepositorySpec

func CorruptedRepositorySpec(rootURL string, specPath string, err error) error

func DoesNotExist

func DoesNotExist(msg string) error

func IncompatibleRepositoryVersion

func IncompatibleRepositoryVersion(rootURL string) error

func IsConfigNotFound

func IsConfigNotFound(err error) bool

func IsDoesNotExist

func IsDoesNotExist(err error) bool

func ReadError

func ReadError(msg string) error

func RepositoryConfigurationError

func RepositoryConfigurationError(msg string) error

func WriteError

func WriteError(msg string) error

Types

type CodedError

type CodedError interface {
	Code() string
}

TODO: support wrapping https://blog.golang.org/go1.13-errors

Jump to

Keyboard shortcuts

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